Skip to content

Enable NPM trusted publishing with OIDC#35

Merged
hillna merged 3 commits intomainfrom
nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing
Jan 26, 2026
Merged

Enable NPM trusted publishing with OIDC#35
hillna merged 3 commits intomainfrom
nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing

Conversation

@hillna
Copy link
Contributor

@hillna hillna commented Jan 13, 2026

Summary

Update npm publish workflow to use OIDC trusted publishing with provenance.

Changes

  • Add id-token: write and contents: read permissions for OIDC authentication
  • Use yarn npm publish with --provenance flag for supply chain security
  • Remove yarn pack step (no longer needed with direct yarn publishing)
  • Update actions to v6
  • Remove NODE_AUTH_TOKEN secret (no longer needed with OIDC)

Status

✅ Trusted publishing has been configured on npmjs.com for this package.

- Add OIDC permissions (id-token: write, contents: read) for trusted publishing
- Replace NODE_AUTH_TOKEN with npx npm@latest publish --provenance
@linear
Copy link

linear bot commented Jan 13, 2026

@hillna hillna force-pushed the nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing branch from e3b7dfb to e7ed018 Compare January 14, 2026 16:25
@hillna hillna self-assigned this Jan 14, 2026
@hillna hillna marked this pull request as ready for review January 14, 2026 18:46
- Add id-token: write and contents: read permissions for OIDC
- Update to npx npm@11.7.0 publish with --provenance flag
- Update actions to v6
@hillna hillna force-pushed the nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing branch from e7ed018 to 3c1b349 Compare January 14, 2026 21:57
@hillna hillna requested a review from jtbandes January 26, 2026 16:26
Switch from yarn pack + npx npm publish to yarn npm publish for OIDC trusted publishing support.
@hillna hillna merged commit 67e2c04 into main Jan 26, 2026
1 check passed
@hillna hillna deleted the nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing branch January 26, 2026 20:28
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