Commit d04edbb
authored
fix(ci): pin npm to 11.x for OIDC publish; npm 12 rejects unknown flags (#47)
`npm@latest` from #45 resolved to 12.0.2, which flipped a breaking change:
> unknown CLI flags, abbreviated flags, and single-hyphen multi-char
> shorthands now throw instead of warning.
`pnpm publish` (used by `changeset publish` in this pnpm workspace) calls
`npm publish` under the hood and forwards the original argv verbatim,
including `--no-git-checks` — a pnpm-only flag. npm 10 silently ignored
it, npm 12 errors with `EUNKNOWNCONFIG - Unknown cli flag: --git-checks`
and every scoped package publish fails.
Pin to `npm@11` instead: it has OIDC trusted publishing (added in 11.5.1)
and still tolerates unknown flags with a warning, which is exactly what
the pnpm → npm publish handoff needs.1 parent a71c440 commit d04edbb
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
0 commit comments