5
5
branches :
6
6
- master
7
7
tags-ignore :
8
- - " *. *"
8
+ - " **"
9
9
pull_request :
10
10
branches :
11
11
- master
@@ -16,26 +16,25 @@ jobs:
16
16
17
17
strategy :
18
18
matrix :
19
- node-version : [14.x, 16.x ]
19
+ node : [16 ]
20
20
21
21
steps :
22
- - uses : actions/checkout@v2
22
+ - uses : actions/checkout@v3
23
23
- name : Use Node.js ${{ matrix.node-version }}
24
- uses : actions/setup-node@v2
24
+ uses : actions/setup-node@v3
25
25
with :
26
26
node-version : ${{ matrix.node-version }}
27
27
28
- - name : Get cached node modules
28
+ - name : Get yarn cache directory path
29
29
id : yarn-cache-dir-path
30
30
run : echo "::set-output name=dir::$(yarn cache dir)"
31
- - uses : actions/cache@v2
31
+ - uses : actions/cache@v3
32
32
id : yarn-cache
33
33
with :
34
34
path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
35
35
key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
36
36
restore-keys : |
37
37
${{ runner.os }}-yarn-
38
-
39
38
- name : Install dependencies
40
39
run : yarn install --frozen-lockfile
41
40
- name : Run lint
@@ -56,19 +55,18 @@ jobs:
56
55
if : github.ref == 'refs/heads/master'
57
56
58
57
steps :
59
- - uses : actions/checkout@v2
58
+ - uses : actions/checkout@v3
60
59
61
- - name : Get cached node modules
60
+ - name : Get yarn cache directory path
62
61
id : yarn-cache-dir-path
63
62
run : echo "::set-output name=dir::$(yarn cache dir)"
64
- - uses : actions/cache@v2.1.6
63
+ - uses : actions/cache@v3
65
64
id : yarn-cache
66
65
with :
67
66
path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
68
67
key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
69
68
restore-keys : |
70
69
${{ runner.os }}-yarn-
71
-
72
70
- name : Install dependencies
73
71
run : yarn install --frozen-lockfile
74
72
- name : Run build
0 commit comments