File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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- cache : " npm"
18- - run : npm install --no-fund --no-audit --ignore-scripts
19- - run : npm run build
20- - run : npm test
10+ permissions :
11+ id-token : write # Required for OIDC
12+ contents : read
2113
14+ jobs :
2215 publish-npm :
23- needs : build
2416 runs-on : ubuntu-latest
2517 steps :
26- - uses : actions/checkout@v4
27- - uses : actions/setup-node@v4
18+ - uses : actions/checkout@v5
19+ - uses : actions/setup-node@v5
2820 with :
29- cache : " npm "
21+ node-version : 22
3022 registry-url : https://registry.npmjs.org/
31- - run : npm install --no-fund --no-audit --ignore-scripts
23+ - run : npm install -g npm@latest
24+ - run : npm ci --ignore-scripts --no-fund --no-audit
3225 - run : npm run build
33- - run : npm publish
34- env :
35- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
26+ - run : npm test
27+ - run : npm publish --access public
You can’t perform that action at this time.
0 commit comments