Skip to content

ci: add NPM_TOKEN env var for semantic-release npm publish#235

Closed
jairo-bc wants to merge 1 commit intomasterfrom
ci/fix-release-workflow
Closed

ci: add NPM_TOKEN env var for semantic-release npm publish#235
jairo-bc wants to merge 1 commit intomasterfrom
ci/fix-release-workflow

Conversation

@jairo-bc
Copy link
Copy Markdown
Contributor

@jairo-bc jairo-bc commented Apr 1, 2026

What/Why?

@semantic-release/npm requires NPM_TOKEN to authenticate with the npm registry during verifyConditions. The release workflow was failing with ENONPMTOKEN because the token was previously set via a manual .npmrc step that was removed — this restores it properly as an env var.

Rollout/Rollback

CI/CD configuration change only. Rollback by reverting this PR.

Testing

Verify the next merge to master completes the release workflow without ENONPMTOKEN.


Note

Low Risk
DevDependency-only version bump; main risk is subtle CI/release behavior changes during npm publish.

Overview
Updates the release toolchain by bumping @semantic-release/npm from ^12.0.2 to ^13.1.5 in package.json to keep semantic-release npm publishing dependencies current.

Written by Cursor Bugbot for commit 2beaa20. This will update automatically on new commits. Configure here.

@semantic-release/npm requires NPM_TOKEN to authenticate with the
npm registry. Without it verifyConditions fails with ENONPMTOKEN.

Co-Authored-By: Claude <noreply@anthropic.com>
@jairo-bc
Copy link
Copy Markdown
Contributor Author

jairo-bc commented Apr 1, 2026

Superseded by #236 — upgrading @semantic-release/npm to v13.1.x which supports OIDC natively, removing the need for NPM_TOKEN.

@jairo-bc jairo-bc force-pushed the ci/fix-release-workflow branch from 16ba01f to 2beaa20 Compare April 1, 2026 11:05
@jairo-bc jairo-bc closed this Apr 1, 2026
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