Skip to content

Conversation

@wpalmeri
Copy link
Contributor

Update npm publish workflow to include provenance. Trust relationship already exists on npmjs

Update npm publish workflow to include provenance. Trust relationship already exists on npmjs
Copilot AI review requested due to automatic review settings January 16, 2026 00:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the npm publish workflow to use npm's trusted publishing with provenance attestations. The changes enable OIDC-based authentication for publishing packages, eliminating the need for long-lived NPM_TOKEN secrets.

Changes:

  • Added OIDC permissions (id-token: write and contents: read) to enable trusted publishing
  • Added --provenance flag to generate build attestations during package publication
  • Removed manual authentication via NODE_AUTH_TOKEN environment variable, relying on OIDC authentication instead

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@stellar-jenkins
Copy link

@wpalmeri wpalmeri merged commit 19d1cb5 into main Jan 16, 2026
12 checks passed
@wpalmeri wpalmeri deleted the npm-trusted-publishing branch January 16, 2026 21:24
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.

4 participants