File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed
Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 99 pull_request :
1010 branches : [ main ]
1111
12+ permissions :
13+ contents : read
14+
1215jobs :
1316 build :
1417
1518 runs-on : ubuntu-latest
1619
1720 strategy :
1821 matrix :
19- node-version : [14 .x, 15 .x]
22+ node-version : [20 .x, 22 .x]
2023 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2124
2225 steps :
23- - uses : actions/checkout@v2
26+ - uses : actions/checkout@v4
2427 - name : Use Node.js ${{ matrix.node-version }}
25- uses : actions/setup-node@v1
28+ uses : actions/setup-node@v4
2629 with :
2730 node-version : ${{ matrix.node-version }}
2831 - run : npm ci
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