File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
.github/files/gh-npmjs-autopublisher/workflows Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change 66 - ' v*.*.*'
77 workflow_dispatch :
88
9+ permissions :
10+ id-token : write # Required for OIDC
11+ contents : read
12+
913jobs :
1014 publish :
1115 name : Publish
1216 runs-on : ubuntu-latest
1317 steps :
14- - name : Check that the secret is set
15- env :
16- TOKEN : ${{ secrets.NPMJS_AUTOMATION_TOKEN }}
17- run : |
18- if [[ -z "$TOKEN" ]]; then
19- echo '::error::The secret NPMJS_AUTOMATION_TOKEN must be set.'
20- exit 1
21- fi
22-
2318 - uses : actions/checkout@v4
2419
2520 - uses : actions/setup-node@v4
2924 registry-url : ' https://registry.npmjs.org'
3025
3126 - name : Publish
32- env :
33- NODE_AUTH_TOKEN : ${{ secrets.NPMJS_AUTOMATION_TOKEN }}
34- run : npm publish --access public
27+ run : |
28+ npm install -g npm@latest
29+ npm publish --access public
You can’t perform that action at this time.
0 commit comments