Skip to content

Commit ee259d7

Browse files
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

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Install modern npm for OIDC trusted publishing
2828
run: |
2929
corepack enable
30-
corepack prepare npm@latest --activate
30+
corepack prepare npm@11.5.1 --activate
3131
npm --version
3232
3333
- run: bun install --frozen-lockfile

0 commit comments

Comments
 (0)