File tree 1 file changed +16
-20
lines changed
1 file changed +16
-20
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish
2
2
on :
3
- # release:
4
- # types: [published]
5
- push :
3
+ release :
4
+ types : [published]
6
5
7
6
jobs :
8
7
publish :
@@ -35,24 +34,21 @@ jobs:
35
34
run : npm run build
36
35
working-directory : xero-node
37
36
38
- # - name: Fetch Latest release number
39
- # id: get_latest_release_number
40
- # run: |
41
- # latest_version=$(gh release view --json tagName --jq '.tagName')
42
- # echo "Latest release version is - $latest_version"
43
- # echo "::set-output name=release_tag::$latest_version"
44
- # working-directory: xero-node
45
- # env:
46
- # GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
47
-
48
- # - name: Publish to npm
49
- # env:
50
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
51
- # run: npm publish
52
- # working-directory: xero-node
37
+ - name : Fetch Latest release number
38
+ id : get_latest_release_number
39
+ run : |
40
+ latest_version=$(gh release view --json tagName --jq '.tagName')
41
+ echo "Latest release version is - $latest_version"
42
+ echo "::set-output name=release_tag::$latest_version"
43
+ working-directory : xero-node
44
+ env :
45
+ GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
53
46
54
- - name : Always Succeed
55
- run : exit 0
47
+ - name : Publish to npm
48
+ env :
49
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
50
+ run : npm publish
51
+ working-directory : xero-node
56
52
57
53
notify-slack-on-success :
58
54
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments