-
Notifications
You must be signed in to change notification settings - Fork 148
Open
Description
See https://docs.npmjs.com/trusted-publishers for documentations.
Note
Trusted publishing requires npm CLI version 11.5.1 or later.
TL;DR: add the following section in the workflow file to replace ${secrets.NPM_TOKEN}
, and create OICD connection on https://www.npmjs.com/package/<package-name>/access
:
permissions:
id-token: write # Required for OIDC
contents: read
This should help us get rid of npm tokens in GitHub Actions for publishing packages.
Quick search on npm token usages: https://github.com/search?q=org%3Anodejs+path%3A%22.github%2Fworkflows%22+%22npm+publish%22&type=code
mcollina, aduh95, joyeecheung, avivkeller and balazsorban44
Metadata
Metadata
Assignees
Labels
No labels