File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 1616 registry-url : https://registry.npmjs.org/
1717 - run : npm ci
1818 - run : npm run build
19- - name : Semantic Release (main)
19+ - name : Version bump
20+ if : success()
21+ run : |
22+ git config user.name "github-actions[bot]"
23+ git config user.email "github-actions[bot]@users.noreply.github.com"
24+ npm version patch --no-git-tag-version
25+ echo "NEW_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
26+
27+ - name : Publish to npm
28+ if : success()
2029 env :
21- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
23- run : npx semantic-release
30+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
31+ run : npm publish
32+
33+ - name : Commit & push version bump
34+ if : success()
35+ run : |
36+ git add package.json package-lock.json
37+ git commit -m "ci: bump to $NEW_VERSION"
38+ git push origin dev
You can’t perform that action at this time.
0 commit comments