Skip to content

fix(release): use exec plugin for npm publish to bypass token validation#391

Merged
mohnoor94 merged 1 commit into
mainfrom
fix-release-npm-publish
Mar 19, 2026
Merged

fix(release): use exec plugin for npm publish to bypass token validation#391
mohnoor94 merged 1 commit into
mainfrom
fix-release-npm-publish

Conversation

@mohnoor94

Copy link
Copy Markdown
Member

Summary

  • Replaces @semantic-release/npm with @semantic-release/exec for npm publishing
  • @semantic-release/npm validates tokens in verifyConditions before publish, but setup-node@v6 OIDC auth only works at actual npm publish time
  • @semantic-release/exec calls npm publish --access public directly, letting setup-node's OIDC handle auth

Follows up on PR #390 which added setup-node@v6 with registry-url.

🤖 Generated with Claude Code

@mohnoor94 mohnoor94 requested a review from a team as a code owner March 19, 2026 21:41
@semantic-release/npm validates tokens in verifyConditions before
publish, but setup-node OIDC auth only works at npm publish time.
Replace with @semantic-release/exec to call npm publish directly.
@mohnoor94 mohnoor94 force-pushed the fix-release-npm-publish branch from e17921a to 033b1b2 Compare March 19, 2026 21:44
@mohnoor94 mohnoor94 merged commit bc6f31b into main Mar 19, 2026
2 checks passed
@mohnoor94 mohnoor94 deleted the fix-release-npm-publish branch March 19, 2026 21:44
mohnoor94 pushed a commit that referenced this pull request Mar 19, 2026
## [2.4.4](v2.4.3...v2.4.4) (2026-03-19)

### Bug Fixes

* **release:** use exec plugin for npm publish to bypass token validation ([#391](#391)) ([bc6f31b](bc6f31b))
* **release:** use setup-node v6 with registry-url for OIDC npm auth ([#390](#390)) ([8aedac6](8aedac6))
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.

1 participant