File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,28 @@ jobs:
26
26
run : npm run build
27
27
28
28
- run : npm version ${{ github.event.release.tag_name }} --git-tag-version=false
29
- if : ${{ github.event.action }} == 'prereleased'
30
29
31
30
- name : Test publishing to NPM
32
31
if : ${{ github.event.action }} == 'prereleased'
33
32
run : npm publish --dry-run
34
33
env :
35
34
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
35
+
36
+ - name : Publish to NPM
37
+ if : ${{ github.event.action }} == 'released'
38
+ run : npm publish --dry-run
39
+ env :
40
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
41
+
42
+ - name : Bump version in git
43
+ if : ${{ github.event.action }} == 'released'
44
+ run : |
45
+ git add package.json
46
+ git add package-lock.json
47
+ git commit -m "Bump version to ${{ github.event.release.tag_name }}"
48
+ git tag -f ${{ github.event.release.tag_name }}
49
+ git push
50
+ git push origin -f ${{ github.event.release.tag_name }}
51
+ env :
52
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53
+
You can’t perform that action at this time.
0 commit comments