File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3232 name : Publish to NPM
3333 needs : build
3434 runs-on : ubuntu-latest
35+ # https://docs.npmjs.com/trusted-publishers#step-2-configure-your-cicd-workflow
36+ permissions :
37+ contents : read # to enable reading the contents of the release for publishing
38+ id-token : write # to enable use of OIDC for npm provenance
3539 steps :
3640 - uses : actions/checkout@v6
3741 - uses : actions/setup-node@v6
4044 registry-url : https://registry.npmjs.org/
4145 - if : ${{ !github.event.release.prerelease }}
4246 run : npm publish
43- env :
44- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
4547 - if : ${{ github.event.release.prerelease }}
4648 run : npm publish --tag next
47- env :
48- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
4949
5050 publish-assets :
5151 name : Publish to assets server
You can’t perform that action at this time.
0 commit comments