Skip to content

fix(ci): re-setup npm registry auth in prerelease workflow#406

Merged
khaliqgant merged 1 commit into
mainfrom
fix/prerelease-cli-auth
Feb 12, 2026
Merged

fix(ci): re-setup npm registry auth in prerelease workflow#406
khaliqgant merged 1 commit into
mainfrom
fix/prerelease-cli-auth

Conversation

@khaliqgant
Copy link
Copy Markdown
Member

@khaliqgant khaliqgant commented Feb 12, 2026

Summary

  • Re-run actions/setup-node after the clean reinstall step to restore .npmrc with OIDC registry auth
  • Move npm install -g npm@latest to its own step before publish (matching the main publish workflow pattern)
  • Fixes "Access token expired or revoked" / 404 error when publishing prereleases

Test plan

  • Trigger "Prerelease CLI" workflow with dry_run: true to verify npm auth works

🤖 Generated with Claude Code


Open with Devin

The clean reinstall step clobbers the .npmrc that setup-node creates
for OIDC-based npm auth. Re-run setup-node after reinstall and move
npm update to its own step before publish.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@khaliqgant khaliqgant merged commit e7a06e7 into main Feb 12, 2026
29 checks passed
@khaliqgant khaliqgant deleted the fix/prerelease-cli-auth branch February 12, 2026 14:39
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