Skip to content

Enable NPM trusted publishing with OIDC#288

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#288
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 self-assigned this Jan 14, 2026
@hillna hillna marked this pull request as ready for review January 14, 2026 18:46
@hillna hillna force-pushed the nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing branch from 36782ad to 2ecd343 Compare January 14, 2026 21:57
Copy link
Member

@jtbandes jtbandes left a comment

Choose a reason for hiding this comment

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

Can we use yarn npm publish?

@hillna
Copy link
Contributor Author

hillna commented Jan 15, 2026

Can we use yarn npm publish?

yarn publish does not support the .tgz packages and I needed to fall back to npm. Let me update my descriptions on those relevant repos to reflect that. I was able to test this with a dry-run locally, which failed.

- 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 2ecd343 to 6991d4e Compare January 15, 2026 15:43
@hillna hillna marked this pull request as draft January 15, 2026 16:10
Switch from yarn pack + npx npm publish to yarn npm publish for OIDC trusted publishing support.
@hillna hillna marked this pull request as ready for review January 26, 2026 21:58
@hillna hillna merged commit 7641354 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 22:30
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