File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88jobs :
99 publish-npm :
1010 runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ id-token : write
1114 steps :
1215 - uses : actions/checkout@v3
1316 - uses : actions/setup-node@v3
@@ -20,11 +23,12 @@ jobs:
2023 - run : npm version ${TAG_NAME} --git-tag-version=false
2124 env :
2225 TAG_NAME : ${{ github.event.release.tag_name }}
23- - run : npm whoami; npm publish
24- env :
25- NODE_AUTH_TOKEN : ${{secrets.npm_token}}
26+ - run : npm publish --provenance
2627 publish-registry :
2728 runs-on : ubuntu-latest
29+ permissions :
30+ contents : read
31+ id-token : write
2832 steps :
2933 - uses : actions/checkout@v3
3034 - uses : actions/setup-node@v3
4347 env :
4448 TAG_NAME : ${{ github.event.release.tag_name }}
4549 - name : Publish to GHPR
46- run : npm publish
47- env :
48- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50+ run : npm publish --provenance
You can’t perform that action at this time.
0 commit comments