Skip to content

chore(deps): upgrade @semantic-release/npm to v10 for OIDC trusted publishing - #538

Merged
gund merged 2 commits into
masterfrom
fix/upgrade-semantic-release-npm-oidc
Jul 17, 2026
Merged

chore(deps): upgrade @semantic-release/npm to v10 for OIDC trusted publishing#538
gund merged 2 commits into
masterfrom
fix/upgrade-semantic-release-npm-oidc

Conversation

@gund

@gund gund commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Problem

The automated release workflow (Issue #537) is failing with "No npm token specified" error after migrating to NPM trusted publisher OIDC flow.

Root Cause

@semantic-release/npm@9.0.1 does not support npm trusted publisher OIDC authentication. It only checks for NPM_TOKEN env var or auth config in .npmrc. With the OIDC migration removing NPM_TOKEN and registry-url from setup-node, there's no authentication available for semantic-release.

Fix

Upgraded @semantic-release/npm from ^9.0.1 to ^10.0.0.

v10 adds native OIDC support, allowing semantic-release to use the GitHub Actions OIDC token directly via id-token: write permission — no NPM_TOKEN or registry-url needed.

Changes

  • package.json: "@semantic-release/npm": "^9.0.1""^10.0.0"

Related

Fixes #537 (follow-up to #535)

…blishing support

@semantic-release/npm@9 does not support npm trusted publisher OIDC
authentication, causing 'No npm token specified' errors (#537).

v10 adds native OIDC support, allowing semantic-release to use the
GitHub Actions OIDC token directly without NPM_TOKEN.
@gund
gund merged commit dda1259 into master Jul 17, 2026
11 checks passed
@gund
gund deleted the fix/upgrade-semantic-release-npm-oidc branch July 17, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The automated release is failing 🚨

1 participant