Skip to content

Commit 1c67840

Browse files
committed
ci: upgrade npm before publishing for OIDC trusted publishing support
Node 20 ships npm 10.x, but npm 11.5.1+ is required to perform OIDC trusted publishing. Without it, 'npm publish' falls back to the token-auth flow with no token, and npm's registry returns 404 on PUT (it hides package existence from unauthenticated callers), producing the misleading 'Not found' error we saw on @cooklang/cooklang.
1 parent 40df5fb commit 1c67840

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,9 @@ jobs:
776776
node-version: '20'
777777
registry-url: 'https://registry.npmjs.org'
778778

779+
- name: Upgrade npm for OIDC trusted publishing support
780+
run: npm install -g npm@latest
781+
779782
- name: Install wasm-pack
780783
run: cargo install wasm-pack --locked || true
781784

0 commit comments

Comments
 (0)