fix(ci): authenticate CLI npm publish - #816
Merged
Merged
Conversation
|
I hit an error while handling your request (Model unavailable on AI Gateway free tier: Free tier users do not have access to this model. Upgrade to paid credits at https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%3Fmodal%3Dtop-up for unrestricted…). Please try again, rephrase, or reach out if it keeps failing. Error id: 72b04ff6-6902-4991-8fd1-6ba882f229d9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Passes the repository
NPM_TOKENto the CLI publish step, matching the other package-specific publish steps. The CLI beta release reachednpm publishbut failed with npm 404/permission because this step had no token environment.How to test
1.0.0-beta.2and then commit/tag the version bump.Screenshots / screen recording
Not applicable.
Checklist
bun devmainbranchNote
Low Risk
Workflow-only change that adds missing npm auth to an existing publish step; no application or runtime behavior changes.
Overview
The Publish CLI job in
release.ymlnow setsNODE_AUTH_TOKENfromsecrets.NPM_TOKEN, the same pattern used by the other package publish steps.Without this, CLI releases could reach
npm publishand fail with registry permission/404 errors because npm had no credentials for that step.Reviewed by Cursor Bugbot for commit 7957fff. Bugbot is set up for automated code reviews on this repo. Configure here.