adjustments to npm publish workflow for OIDC publishing #222
+8
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
repositoryfield inpackage.jsonfiles to the format thatnpmexpects here - vianpm pkg fixnpmversions 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.NPM_TOKENsecrets 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.