Skip to content

Commit 973bc01

Browse files
cubehouseclaude
andcommitted
ci: bump npm before publish for OIDC trusted publishing
Node 20 ships with npm 10.x, which predates trusted-publishing support. The v7.0.0-alpha.0 release hit E404 on PUT because the publish command fell back to the placeholder NODE_AUTH_TOKEN setup-node injects when no real token is configured. npm >= 11.5.1 natively understands OIDC trusted publishing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f8d0ee9 commit 973bc01

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
node-version: 20
2020
cache: npm
2121
registry-url: https://registry.npmjs.org
22+
- run: npm install -g npm@latest # trusted publishing requires npm >= 11.5.1
2223
- run: npm ci
2324
- run: npm run lint && npm run typecheck && npm test && npm run build
2425
- run: npm publish --provenance --access public

0 commit comments

Comments
 (0)