File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @dotgithub/core " : patch
3+ " @dotgithub/cli " : patch
4+ ---
5+
6+ Adjust release workflow to commit version changes only after successful npm publish.
Original file line number Diff line number Diff line change 4646 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4747 run : bun run changeset:version
4848
49- - name : Commit version updates to main
50- if : steps.changesets.outputs.count != '0'
51- run : |
52- git config user.name "github-actions[bot]"
53- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
54- git add -A
55- git commit -m "chore(release): version packages [skip ci]" || exit 0
56- git push
57-
5849 - name : Configure npm auth for npmjs
5950 if : steps.changesets.outputs.count != '0'
6051 env :
6960 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7061 NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
7162 run : bun run changeset:publish
63+
64+ - name : Commit version updates to main
65+ if : steps.changesets.outputs.count != '0'
66+ run : |
67+ git config user.name "github-actions[bot]"
68+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
69+ git add -A
70+ git commit -m "chore(release): version packages [skip ci]" || exit 0
71+ git push
You can’t perform that action at this time.
0 commit comments