Skip to content

Use npm trusted publishing (OIDC) for package releases#586

Merged
carlostxm merged 1 commit into
mainfrom
chore/npm-trusted-publishing
May 14, 2026
Merged

Use npm trusted publishing (OIDC) for package releases#586
carlostxm merged 1 commit into
mainfrom
chore/npm-trusted-publishing

Conversation

@carlostxm
Copy link
Copy Markdown
Contributor

@carlostxm carlostxm commented May 14, 2026

Summary

  • Replace NPM_TOKEN secret with OIDC trusted publishing for npm
  • Add id-token: write permission to enable provenance attestation
  • Publish with --provenance flag for supply chain security
  • No more token rotation needed every 90 days

Setup done

Trusted publisher configured on npmjs.com for this repo/workflow (no environment).

Test plan

  • Merge this PR
  • Create a new release to trigger the publish workflow
  • Verify the package is published successfully on npm with provenance badge

@carlostxm carlostxm force-pushed the chore/npm-trusted-publishing branch 3 times, most recently from a4ecb69 to 1141e4a Compare May 14, 2026 11:30
Removes dependency on long-lived npm tokens that expire every 90 days.

Co-authored-by: Cursor <cursoragent@cursor.com>
@carlostxm carlostxm force-pushed the chore/npm-trusted-publishing branch from 1141e4a to 0274c2a Compare May 14, 2026 11:32
Copy link
Copy Markdown
Contributor

@christiandebarrio christiandebarrio left a comment

Choose a reason for hiding this comment

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

LGTM

@carlostxm carlostxm merged commit bbbfe26 into main May 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants