Commit 5c6d09f
ci: make the release publish step idempotent
Pushing a v* tag ran an unconditional `pnpm publish`, so a tag pushed after
a manual publish — or re-pushed to rerun the checks — failed on a version
that was already on npm.
Publishing is the only step in this workflow that cannot be repeated, so it
is the only one that needs a guard: the version is looked up on the registry
first and the step is skipped when it is already there.
A missing NPM_TOKEN now fails with the command needed to set it, instead of
an opaque auth error from pnpm.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent e9a514e commit 5c6d09f
1 file changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
46 | 72 | | |
47 | 73 | | |
0 commit comments