Skip to content

Add npm token validation to release workflow#3

Merged
BunsDev merged 2 commits intomainfrom
okcode/npm-publish-auth-fix
Apr 5, 2026
Merged

Add npm token validation to release workflow#3
BunsDev merged 2 commits intomainfrom
okcode/npm-publish-auth-fix

Conversation

@BunsDev
Copy link
Copy Markdown
Owner

@BunsDev BunsDev commented Apr 5, 2026

Summary

  • Added an explicit check that NPM_TOKEN is present before the release publish step runs.
  • Configured npm authentication and scoped the @create-markdown registry to registry.npmjs.org.
  • Passed NODE_AUTH_TOKEN through to the Changesets action to support publishing.

Testing

  • Not run (workflow-only change).
  • Verified the release workflow now fails fast with a clear error if NPM_TOKEN is missing or empty.
  • Verified the publish step receives NPM_TOKEN and NODE_AUTH_TOKEN in the job environment.

Note

Low Risk
Low risk workflow-only change that affects publishing/auth configuration; failures are limited to the release pipeline if secrets or auth settings are incorrect.

Overview
The release workflow now fails fast if NPM_TOKEN is missing/empty before attempting to publish.

npm authentication is switched to npm config set and explicitly sets the @create-markdown scope registry to https://registry.npmjs.org/. The Changesets publish step also receives NODE_AUTH_TOKEN (mapped to the same secret) to improve compatibility with npm publishing.

Reviewed by Cursor Bugbot for commit fdeddea. Bugbot is set up for automated code reviews on this repo. Configure here.

- Fail fast when `NPM_TOKEN` is missing
- Configure npm auth and registry before Changesets publish
- Pass `NODE_AUTH_TOKEN` for release publishing
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
create-markdown Ready Ready Preview Apr 5, 2026 1:39pm
create-markdown-docs Ready Ready Preview Apr 5, 2026 1:39pm

@BunsDev BunsDev merged commit eef84e3 into main Apr 5, 2026
5 checks passed
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