File tree Expand file tree Collapse file tree 4 files changed +10
-57
lines changed Expand file tree Collapse file tree 4 files changed +10
-57
lines changed Original file line number Diff line number Diff line change @@ -18,24 +18,14 @@ jobs:
18
18
node-version : [20, 22]
19
19
20
20
steps :
21
- - uses : actions/checkout@v2
21
+ - uses : actions/checkout@v4
22
22
- name : Use Node.js ${{ matrix.node-version }}
23
- uses : actions/setup-node@v2
23
+ uses : actions/setup-node@v4
24
24
with :
25
25
node-version : ${{ matrix.node-version }}
26
- - name : Use cached node_modules
27
- id : cache
28
- uses : actions/cache@v2
29
- with :
30
- path : node_modules
31
- key : nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
32
- restore-keys : |
33
- nodeModules-
26
+ cache : ' npm'
27
+
34
28
- name : Install dependencies
35
- if : steps.cache.outputs.cache-hit != 'true'
36
29
run : npm install
37
- env :
38
- CI : true
30
+
39
31
- run : npm test
40
- env :
41
- CI : true
Original file line number Diff line number Diff line change 6
6
tags :
7
7
- ' v*'
8
8
9
- env :
10
- CI : true
11
-
12
9
permissions :
13
10
contents : read
14
11
@@ -24,31 +21,20 @@ jobs:
24
21
node-version : [22]
25
22
26
23
steps :
27
- - uses : actions/checkout@v3
24
+ - uses : actions/checkout@v4
28
25
29
26
- name : Use Node.js ${{ matrix.node-version }}
30
- uses : actions/setup-node@v3
27
+ uses : actions/setup-node@v4
31
28
with :
32
29
node-version : ${{ matrix.node-version }}
33
30
registry-url : ' https://registry.npmjs.org'
34
-
35
- - name : Use cached node_modules
36
- id : cache
37
- uses : actions/cache@v3
38
- with :
39
- path : node_modules
40
- key : nodeModules-${{ hashFiles('./package-lock.json') }}-${{ matrix.node-version }}
31
+ cache : ' npm'
41
32
42
33
- name : Install dependencies
43
- if : steps.cache.outputs.cache-hit != 'true'
44
34
run : npm install
45
- env :
46
- CI : true
47
35
48
36
- name : Test
49
37
run : npm test
50
- env :
51
- CI : true
52
38
53
39
- name : Resolve version
54
40
id : vars
Original file line number Diff line number Diff line change @@ -24,24 +24,13 @@ jobs:
24
24
with :
25
25
node-version : ${{ matrix.node-version }}
26
26
registry-url : ' https://registry.npmjs.org'
27
-
28
- - name : Use cached node_modules
29
- id : cache
30
- uses : actions/cache@v3
31
- with :
32
- path : node_modules
33
- key : nodeModules-${{ hashFiles('./package-lock.json') }}-${{ matrix.node-version }}
27
+ cache : ' npm'
34
28
35
29
- name : Install dependencies
36
- if : steps.cache.outputs.cache-hit != 'true'
37
30
run : npm install
38
- env :
39
- CI : true
40
31
41
32
- name : Test
42
33
run : npm test
43
- env :
44
- CI : true
45
34
46
35
- name : Resolve version
47
36
id : vars
53
42
- name : Publish
54
43
run : npm publish --provenance --tag insiders
55
44
env :
56
- CI : true
57
45
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -24,24 +24,13 @@ jobs:
24
24
with :
25
25
node-version : ${{ matrix.node-version }}
26
26
registry-url : ' https://registry.npmjs.org'
27
-
28
- - name : Use cached node_modules
29
- id : cache
30
- uses : actions/cache@v3
31
- with :
32
- path : node_modules
33
- key : nodeModules-${{ hashFiles('./package-lock.json') }}-${{ matrix.node-version }}
27
+ cache : ' npm'
34
28
35
29
- name : Install dependencies
36
- if : steps.cache.outputs.cache-hit != 'true'
37
30
run : npm install
38
- env :
39
- CI : true
40
31
41
32
- name : Test
42
33
run : npm test
43
- env :
44
- CI : true
45
34
46
35
- name : Calculate environment variables
47
36
run : |
You can’t perform that action at this time.
0 commit comments