Skip to content

Conversation

@gyaneshgouraw-okta
Copy link
Contributor

@gyaneshgouraw-okta gyaneshgouraw-okta commented Jan 28, 2026

Summary

Switch npm publishing from token-based authentication to OIDC-based trusted publishing.

Changes

  • Remove npm-token secret requirement from workflows and publish action
  • Add id-token: write permission for OIDC authentication
  • Update npm to v11 in the publish action (required for OIDC publishing)
  • Remove --provenance flag and NODE_AUTH_TOKEN environment variable

Post-merge: Configure on npmjs.com

Package Settings → Trusted Publisher → GitHub Actions:

  • Organization: auth0
  • Repository: auth0-react
  • Workflow: release.yml
  • Environment: release

Benefits

  • Eliminates need to manage long-lived npm tokens as secrets
  • Leverages GitHub's OIDC provider for secure, short-lived credentials
  • Simplifies secret management across repositories using the shared workflow

@gyaneshgouraw-okta gyaneshgouraw-okta requested a review from a team as a code owner January 28, 2026 06:28
@gyaneshgouraw-okta gyaneshgouraw-okta merged commit cd9476e into main Jan 28, 2026
10 checks passed
@gyaneshgouraw-okta gyaneshgouraw-okta deleted the oidc-publish branch January 28, 2026 06:32
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.

3 participants