Commit 6fe2c55
ci: use --frozen-lockfile in the publish version bump
The publish workflow ran a plain `pnpm i` before `pnpm version patch`.
If the lockfile was even slightly out of sync with package.json (easy
to happen when a dependency bump is merged via PR), that install
updated pnpm-lock.yaml and left the working tree dirty. `pnpm version
patch` silently declines to create a git tag in a dirty tree but
still writes the new version into package.json, and the subsequent
`git push --atomic <branch> vX.Y.Z` fails with:
error: src refspec vX.Y.Z does not match any
— blocking the publish. Using `--frozen-lockfile` keeps the tree
clean; if the lockfile really is out of sync, the install fails
loudly (which is what we want — the fix is to update the lockfile in
a PR, not silently during publish).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent edb9029 commit 6fe2c55
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments