File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 66jobs :
77 beta_release :
88 runs-on : ubuntu-latest
9- env :
10- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
11- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
9+ permissions :
10+ contents : read
11+ id-token : write
1212 steps :
1313 - uses : actions/checkout@v4
1414 with :
1515 ref : ${{ github.head_ref }}
1616 - uses : actions/setup-node@v4
1717 with :
18- node-version : ' 16 .x'
18+ node-version : ' 20 .x'
1919 registry-url : ' https://registry.npmjs.org'
2020 cache : ' yarn'
2121
2222 - name : Install dev dependencies
2323 run : yarn install
2424
25- - name : Setup npm credentials file
26- run : echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> .npmrc
27-
2825 - name : Setup git credentials
2926 run : |
3027 git config --global user.name 'Auto Release Bot'
3936 GITHUB_PR_NUMBER : ${{ github.event.pull_request.number }}
4037
4138 - name : Release a new beta version
42- run : npm publish --tag beta
43- env :
44- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
39+ run : npm publish --tag beta --provenance --access public
4540
4641 - uses : actions/github-script@v6
4742 with :
You can’t perform that action at this time.
0 commit comments