Skip to content

fix: make npm trusted publishing tokenless in CI#45

Merged
manthan787 merged 1 commit intomainfrom
codex/fix-npm-trusted-publish-auth
Feb 12, 2026
Merged

fix: make npm trusted publishing tokenless in CI#45
manthan787 merged 1 commit intomainfrom
codex/fix-npm-trusted-publish-auth

Conversation

@manthan787
Copy link
Collaborator

@manthan787 manthan787 commented Feb 12, 2026

Summary

  • force npm trusted publishing to run tokenless by clearing NODE_AUTH_TOKEN and NPM_TOKEN in publish step
  • remove npm auth token config before publish to avoid stale/revoked token usage
  • upgrade npm to v11.5.1+ in publish job for current trusted-publishing behavior
  • document troubleshooting note in README

Why

The release 0.2.1 publish failed with:

  • Access token expired or revoked
  • E404 Not Found - PUT https://registry.npmjs.org/@runbook-agent%2frunbook

Workflow logs showed NODE_AUTH_TOKEN was set during publish, causing token-based auth path instead of clean OIDC trusted publishing.

Validation

  • npm run typecheck

@manthan787 manthan787 merged commit fdcd375 into main Feb 12, 2026
2 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