File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,13 @@ jobs:
53
53
54
54
- name : Install
55
55
run : |
56
- npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISHING_KEY }}
57
56
npm install
58
57
npm run dev:prepare
59
58
60
59
- name : Release
61
- run : npm run release:ci
60
+ run : |
61
+ npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISHING_KEY }}
62
+ npm run release:ci
62
63
63
64
bump-version :
64
65
name : ' Bump package version'
@@ -77,11 +78,16 @@ jobs:
77
78
cache : ' npm'
78
79
79
80
- name : Install
80
- run : npm install
81
+ run : |
82
+ npm install
83
+ npm run dev:prepare
81
84
82
85
- name : Bump version
83
86
id : bump_version
84
87
run : |
88
+ git config user.name "github-actions[bot]"
89
+ git config user.email "github-actions[bot]@users.noreply.github.com"
90
+
85
91
NEW_VERSION=$(npm version patch -m "chore: bumped package version to %s")
86
92
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
87
93
93
99
- name : Push changes
94
100
run : |
95
101
git commit --amend --no-edit
96
- git push origin HEAD:main --follow-tags
102
+ git push origin main --tags
103
+
104
+ - name : Release new version
105
+ run : |
106
+ npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISHING_KEY }}
107
+ npm run release:ci
You can’t perform that action at this time.
0 commit comments