Commit ee259d7
committed
ci: pin npm to 11.5.1 so OIDC trusted publishing is supported
corepack's `npm@latest` shorthand resolves via corepack's built-in
knownLastVersions table, which on Node 22.22.2 still points at
npm 10.9.7. npm 10 has no OIDC trusted-publishing support, so
`changeset publish` could not exchange the GitHub OIDC token for a
registry token and failed with ENEEDAUTH even though the trusted
publisher was configured on npmjs.com. Pinning to 11.5.1 (the first
npm release with trusted publishing) makes the exchange work.1 parent f168d8a commit ee259d7
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments