Skip to content

adjustments to npm publish workflow for OIDC publishing#240

Open
phryneas wants to merge 1 commit intomainfrom
pr/setup-oidc
Open

adjustments to npm publish workflow for OIDC publishing#240
phryneas wants to merge 1 commit intomainfrom
pr/setup-oidc

Conversation

@phryneas
Copy link

@phryneas phryneas commented Jan 26, 2026

This PR makes changes to enable OIDC publishing to npm, so that we no longer need to use npm tokens stored in GitHub secrets.

It makes the following changes:

  • Update the repository field in package.json files to the format that npm expects here - via npm pkg fix
  • Add permissions required for OIDC publishing to the GitHub Actions workflow
  • Ensures that the node version for publishing is node 24. npm versions shipping with older node versions cannot publish via OIDC. Some node 22 versions can, but it's a gamble and hard to debug if something goes wrong.
  • Remove references to NPM_TOKEN secrets in the GitHub Actions workflow - or if using changesets, sets it to "" as changesets requires the env var to be set, but actually doesn't do anything - and it should be empty for OIDC publishing to work.

I have already gone ahead and set OIDC publishing on the npm side, so this is just the second half of the puzzle.

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant