Skip to content

feat: enable trusted publishing for npm packages#769

Merged
yogeshchoudhary147 merged 2 commits intomainfrom
feat/enable-trusted-publishing-npm
Jan 13, 2026
Merged

feat: enable trusted publishing for npm packages#769
yogeshchoudhary147 merged 2 commits intomainfrom
feat/enable-trusted-publishing-npm

Conversation

@yogeshchoudhary147
Copy link
Contributor

Summary

Implements trusted publishing using OIDC authentication to eliminate long-lived npm tokens.

Changes

  • Add id-token: write permissions to workflows
  • Update npm CLI to version 11 (includes trusted publishing support ≥11.5.1)
  • Remove --provenance flag (auto-generated with trusted publishing) Refer
  • Remove npm-token dependency

Modified Files

  • .github/workflows/release.yml - Updated permissions comment, removed npm-token secret
  • .github/workflows/npm-release.yml - Added permissions, removed npm-token from secrets
  • .github/actions/npm-publish/action.yml - Updated to npm@11, removed token dependencies

Post-merge: Configure on npmjs.com

Package Settings → Trusted Publisher → GitHub Actions:

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

Benefits

  • Enhanced security with short-lived tokens
  • Automatic provenance attestations
  • No token management needed

Follows OpenSSF trusted publishers standard

Testing

After merge, verify that the release workflow can publish successfully using trusted publishing.

- Add id-token: write permissions to workflows
- Update npm CLI to version 11 (includes trusted publishing support)
- Remove --provenance flag (auto-generated with trusted publishing)
- Remove npm-token dependency

Post-merge: Configure trusted publisher on npmjs.com
Package Settings → Trusted Publisher → GitHub Actions:
- Organization: auth0
- Repository: auth0-angular
- Workflow: release.yml
- Environment: release
@yogeshchoudhary147 yogeshchoudhary147 requested a review from a team as a code owner January 13, 2026 06:47
@yogeshchoudhary147 yogeshchoudhary147 merged commit d6a0c2d into main Jan 13, 2026
8 of 9 checks passed
@yogeshchoudhary147 yogeshchoudhary147 deleted the feat/enable-trusted-publishing-npm branch January 13, 2026 06:54
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.

2 participants