Skip to content

Comments

Enable NPM trusted publishing with OIDC#11

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

Enable NPM trusted publishing with OIDC#11
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

Upgrade to Yarn 4.x and OIDC trusted publishing.

Changes

  • Add packageManager: yarn@4.9.1 and .yarnrc.yml
  • Update CI to use corepack enable, --immutable, yarn npm publish
  • Update Node.js to 22.x
  • Remove yarn pack step (no longer needed)

Status

✅ Trusted publishing configured on npmjs.com

- 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 2 times, most recently from 7c8659c to 34e262d Compare January 14, 2026 17:12
- Upgrade to Yarn 4.12.0 for OIDC support (PR yarnpkg/berry#6898)
- Replace npx npm@latest publish --provenance with yarn npm publish
- Provenance is automatic with OIDC trusted publishing
- Add packageManager field where missing
@hillna hillna force-pushed the nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing branch from 34e262d to 9b78a02 Compare January 14, 2026 17:24
@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 requested a review from jtbandes January 26, 2026 16:26
@hillna hillna marked this pull request as draft January 26, 2026 21:04
- Add packageManager field (yarn@4.9.1)
- Add .yarnrc.yml with nodeLinker: node-modules
- Update CI: corepack enable, --immutable, yarn npm publish
- Update Node.js to 22.x
@hillna hillna marked this pull request as ready for review January 28, 2026 21:44
@hillna hillna merged commit 342bbf2 into main Jan 29, 2026
1 check passed
@hillna hillna deleted the nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing branch January 29, 2026 22:25
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