Skip to content

Commit b84b28a

Browse files
marcstraubeclaude
andauthored
fix(ci): upgrade npm for OIDC trusted publishing support (#40)
## Summary - Node.js 20 ships with npm 10 which **does not support OIDC token exchange** for trusted publishing (requires npm >= 11.5.1) - Add `npm install -g npm@latest` before publish steps - This was the root cause of all E404 errors during publish References: [npm/cli#8976](npm/cli#8976), [npm/cli#8678](npm/cli#8678) ## Test plan - [ ] CI passes - [ ] After merge: `gh workflow run release-please.yml -f tag=v1.0.3` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9f91a5d commit b84b28a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ jobs:
5252
if: ${{ steps.release.outputs.release_created }}
5353
run: pnpm run build
5454

55+
- name: Update npm for OIDC trusted publishing
56+
if: ${{ steps.release.outputs.release_created }}
57+
run: npm install -g npm@latest
58+
5559
- name: Publish to npm
5660
if: ${{ steps.release.outputs.release_created }}
5761
run: npm publish --access public --provenance
@@ -93,6 +97,9 @@ jobs:
9397
- name: Build package
9498
run: pnpm run build
9599

100+
- name: Update npm for OIDC trusted publishing
101+
run: npm install -g npm@latest
102+
96103
- name: Publish to npm
97104
run: npm publish --access public --provenance
98105

0 commit comments

Comments
 (0)