File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,26 +34,14 @@ jobs:
3434
3535 # Generate changelog and update package.json version
3636 - name : Generate changelog
37- run : npx standard-version --release-as ${{ github.event.release.tag_name }} --no-verify
38- env :
39- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40-
41- # Push changelog and package.json back to main
42- - name : Push changelog back to main
4337 run : |
4438 git config user.name "github-actions[bot]"
4539 git config user.email "github-actions[bot]@users.noreply.github.com"
46- git pull origin main --rebase # Ensure the branch is up-to-date
47- git add CHANGELOG.md package.json
48- git commit -m "docs(release): update changelog and version [skip ci]" || echo "No changes to commit"
49- git push origin main
40+ npx standard-version --release-as ${{ github.event.release.tag_name }} --no-verify
5041 env :
51- GIT_AUTHOR_NAME : github-actions[bot]
52- GIT_AUTHOR_EMAIL : github-actions[bot]@users.noreply.github.com
53- GIT_COMMITTER_NAME : github-actions[bot]
54- GIT_COMMITTER_EMAIL : github-actions[bot]@users.noreply.github.com
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5543
5644 - name : Publish to npm
5745 run : pnpm publish --access public --no-git-checks
5846 env :
59- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
47+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments