Skip to content

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

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

Use npm trusted publishing (OIDC) for package releases#380
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 from c04cf4b to 35a1ba8 Compare May 14, 2026 11:01
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 35a1ba8 to b4d7003 Compare May 14, 2026 11:07
@carlostxm carlostxm merged commit d9d8622 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.

1 participant