File tree Expand file tree Collapse file tree 3 files changed +21
-14
lines changed Expand file tree Collapse file tree 3 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 11name : Node CI
22
33on : [push, pull_request]
4+
5+ permissions :
6+ contents : read
7+
48jobs :
59 build :
610 runs-on : ubuntu-latest
711 steps :
8- - uses : actions/checkout@v3
9- - uses : actions/setup-node@v3
12+ - uses : actions/checkout@v4
13+ - uses : actions/setup-node@v4
1014 with :
11- node-version : 18
15+ node-version : 22
1216 registry-url : https://registry.npmjs.org/
1317 cache : npm
1418 - run : npm ci
Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 permissions :
1111 contents : read
12+ id-token : write
1213 steps :
13- - uses : actions/checkout@v3
14- - uses : actions/setup-node@v3
14+ - uses : actions/checkout@v4
15+ - uses : actions/setup-node@v4
1516 with :
16- node-version : 18
17+ node-version : 22
1718 registry-url : https://registry.npmjs.org/
1819 cache : npm
1920 - run : npm ci
2021 - run : npm test
2122 - run : npm version ${TAG_NAME} --git-tag-version=false
2223 env :
2324 TAG_NAME : ${{ github.event.release.tag_name }}
24- - run : npm whoami; npm --ignore-scripts publish
25+ - run : npm whoami; npm --ignore-scripts publish --provenance
2526 env :
2627 NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments