fix: check for a configured registry token, not npm whoami #2
Loading…
Reference in a new issue
No description provided.
Delete branch "jonnxor/fix/registry-login-check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes
mise run release, which refused every time.The bug: the script used
npm whoamito check you were logged in. Forgejo's npm registry has nowhoamiendpoint and answers 404 even with a valid token, so the check could never pass. My release tests used a stand-in npm and didn't catch it.The fix: the script now checks that a token is configured for the registry (in
npm config list). Publishing is what proves the token works.Checked:
After merging:
git pull && mise run release.🤖 Generated with Claude Code