fix(ci): npm publish preflight + clear-error-on-missing-token#55
Open
imzzaidd wants to merge 1 commit into
Open
fix(ci): npm publish preflight + clear-error-on-missing-token#55imzzaidd wants to merge 1 commit into
imzzaidd wants to merge 1 commit into
Conversation
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.
Summary
The Release workflow's npm publish step failed on the v0.15.5 tag push with:
```
npm error 404 Not Found - PUT https://registry.npmjs.org/@vizzor%2fcli
npm error 404 '@vizzor/cli@0.15.5' is not in this registry.
```
This is a misleading error — `@vizzor/cli` IS on npm (latest 0.15.2). npm disguises 401/403 (auth failures) as 404 to avoid leaking scope existence. The actual cause is that the `NPM_TOKEN` repo secret is missing, empty, or revoked.
Fix
Operator action required
After this PR merges, generate a fresh Granular Access Token at:
Permissions: read and write on `@vizzor/cli`. Then:
Then re-trigger:
```bash
gh workflow run "Release" --ref main -f tag=v0.15.5
```
The preflight will confirm the token is present, and the publish will proceed.