File tree 3 files changed +21
-14
lines changed
3 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 1
1
name : Node CI
2
2
3
3
on : [push, pull_request]
4
+
5
+ permissions :
6
+ contents : read
7
+
4
8
jobs :
5
9
build :
6
10
runs-on : ubuntu-latest
7
11
steps :
8
- - uses : actions/checkout@v3
9
- - uses : actions/setup-node@v3
12
+ - uses : actions/checkout@v4
13
+ - uses : actions/setup-node@v4
10
14
with :
11
- node-version : 18
15
+ node-version : 22
12
16
registry-url : https://registry.npmjs.org/
13
17
cache : npm
14
18
- run : npm ci
Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
permissions :
11
11
contents : read
12
+ id-token : write
12
13
steps :
13
- - uses : actions/checkout@v3
14
- - uses : actions/setup-node@v3
14
+ - uses : actions/checkout@v4
15
+ - uses : actions/setup-node@v4
15
16
with :
16
- node-version : 18
17
+ node-version : 22
17
18
registry-url : https://registry.npmjs.org/
18
19
cache : npm
19
20
- run : npm ci
20
21
- run : npm test
21
22
- run : npm version ${TAG_NAME} --git-tag-version=false
22
23
env :
23
24
TAG_NAME : ${{ github.event.release.tag_name }}
24
- - run : npm whoami; npm --ignore-scripts publish
25
+ - run : npm whoami; npm --ignore-scripts publish --provenance
25
26
env :
26
27
NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments