Skip to content

fix(ci): upgrade npm for OIDC trusted publishing support#40

Merged
marcstraube merged 1 commit intomasterfrom
fix/npm-version-for-oidc
Apr 11, 2026
Merged

fix(ci): upgrade npm for OIDC trusted publishing support#40
marcstraube merged 1 commit intomasterfrom
fix/npm-version-for-oidc

Conversation

@marcstraube
Copy link
Copy Markdown
Owner

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#8678

Test plan

  • CI passes
  • After merge: gh workflow run release-please.yml -f tag=v1.0.3

🤖 Generated with Claude Code

Node.js 20 ships with npm 10 which does not support OIDC token exchange
for trusted publishing (requires npm >= 11.5.1). Add npm upgrade step
before publish. This was the root cause of the E404 errors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@marcstraube marcstraube added security Security fixes github_actions Pull requests that update GitHub Actions code labels Apr 11, 2026
@marcstraube marcstraube merged commit b84b28a into master Apr 11, 2026
10 checks passed
@marcstraube marcstraube deleted the fix/npm-version-for-oidc branch April 11, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code security Security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant