File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change 77 release :
88 types : [created]
99
10- jobs :
11- build :
12- runs-on : ubuntu-latest
13- steps :
14- - uses : actions/checkout@v4
15- - uses : actions/setup-node@v4
16- with :
17- node-version : 20
18- - run : npm install --ignore-scripts --no-audit --no-fund
19- - run : npm test
10+ permissions :
11+ id-token : write # Required for OIDC
12+ contents : read
2013
14+ jobs :
2115 publish-npm :
2216 needs : build
2317 runs-on : ubuntu-latest
2418 steps :
2519 - uses : actions/checkout@v4
2620 - uses : actions/setup-node@v4
2721 with :
28- cache : ' npm '
22+ node-version : 22
2923 registry-url : https://registry.npmjs.org/
24+ - run : npm install -g npm@latest
3025 - run : npm install --ignore-scripts --no-audit --no-fund
26+ - run : npm test
3127 - run : npm run build
32- - run : npm publish --public
33- env :
34- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
28+ - run : npm publish --access public
You can’t perform that action at this time.
0 commit comments