Skip to content

Commit b90f4b9

Browse files
Daniel ClaytonDaniel Clayton
authored andcommitted
ci: publish before committing version bump; add changeset
1 parent c08933e commit b90f4b9

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

.changeset/warm-seals-nail.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@dotgithub/core": patch
3+
"@dotgithub/cli": patch
4+
---
5+
6+
Adjust release workflow to commit version changes only after successful npm publish.

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,6 @@ jobs:
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:
@@ -69,3 +60,12 @@ jobs:
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

0 commit comments

Comments
 (0)