Skip to content

Commit e237529

Browse files
committed
fix(ci): reset checkout before canary publish
changesets/action modifies the working directory when creating the version PR (bumps version, deletes changeset files). The canary step was running in that modified state, publishing the bumped version with the canary tag instead of a proper snapshot. Fix: checkout the original commit before running canary snapshot.
1 parent da9b52c commit e237529

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,8 @@ jobs:
5353
- name: Publish canary snapshot
5454
if: steps.changesets.outputs.published != 'true'
5555
run: |
56+
git checkout ${{ github.sha }}
57+
bun install
58+
bun run build
5659
npx changeset version --snapshot canary
5760
npx changeset publish --tag canary --no-git-tag

0 commit comments

Comments
 (0)