File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 11name : Release & Publish to NPM
22on : workflow_dispatch
33
4+ # See https://docs.npmjs.com/trusted-publishers
5+ permissions :
6+ id-token : write # Required for OIDC
7+ contents : read
8+
49jobs :
510 release :
611 runs-on : ubuntu-latest
914 uses : actions/checkout@v4
1015 with :
1116 fetch-depth : 0
12- token : ${{ secrets.RELEASE_GITHUB_TOKEN }}
1317
1418 - name : Setup
1519 uses : ./.github/actions/setup
1620
17- - name : Initialise the NPM config
18- run : npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
19- env :
20- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
21-
2221 - name : Initialize Git user
2322 run : |
2423 git config --global user.email "[email protected] " 2928
3029 - name : Run release
3130 run : npm run release --ci
32- env :
33- GITHUB_TOKEN : ${{ secrets.RELEASE_GITHUB_TOKEN }}
34- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments