File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11name : Node.js CI
22on : [push]
3+ permissions :
4+ contents : read
35jobs :
46 build :
57 runs-on : ubuntu-latest
68 steps :
79 - uses : actions/checkout@v4
810 - name : Use Node.js
9- uses : actions/setup-node@v3
11+ uses : actions/setup-node@v4
1012 with :
11- node-version : ' 18 .x'
13+ node-version : ' 22 .x'
1214 - run : npm install
1315 - run : npm run build --if-present
1416 - run : npm test
Original file line number Diff line number Diff line change 44 release :
55 types : [created]
66
7+ permissions :
8+ contents : read
9+ id-token : write
10+
711jobs :
812 publish-npm :
913 runs-on : ubuntu-latest
1014 steps :
11- - uses : actions/checkout@v3
12- - uses : actions/setup-node@v3
15+ - uses : actions/checkout@v4
16+ - uses : actions/setup-node@v4
1317 with :
14- node-version : 14
18+ node-version : 22
1519 registry-url : https://registry.npmjs.org/
1620 cache : npm
1721 - run : npm ci
1822 - run : npm test
1923 - run : npm version ${TAG_NAME} --git-tag-version=false
2024 env :
2125 TAG_NAME : ${{ github.event.release.tag_name }}
22- - run : npm whoami; npm --ignore-scripts publish
26+ - run : npm whoami; npm --ignore-scripts publish --provenance
2327 env :
2428 NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments