@@ -17,23 +17,13 @@ jobs:
17
17
runs-on : ubuntu-latest
18
18
strategy :
19
19
matrix :
20
- node : [16, 18 ]
20
+ node : [18, 20 ]
21
21
steps :
22
22
- uses : actions/checkout@v3
23
23
- uses : actions/setup-node@v3
24
24
with :
25
25
node-version : ${{ matrix.node }}
26
- - id : find-yarn-cache-folder
27
- name : Find Yarn's cache folder
28
- run : echo "::set-output name=path::$(yarn config get cacheFolder)"
29
- - name : Cache Yarn's cache folder
30
-
31
- with :
32
- path : ${{ steps.find-yarn-cache-folder.outputs.path }}
33
- key : yarn-cache-folder-os-${{ runner.os }}-node-${{ env.node-version }}-${{ hashFiles('yarn.lock') }}
34
- restore-keys : |
35
- yarn-cache-folder-os-${{ runner.os }}-node-${{ env.node-version }}-
36
- yarn-cache-folder-os-${{ runner.os }}-
26
+ cache : yarn
37
27
- name : Install dependencies and test
38
28
run : |
39
29
yarn install --immutable
49
39
- uses : actions/checkout@v3
50
40
- uses : actions/setup-node@v3
51
41
with :
52
- node-version : 16
53
- - id : find-yarn-cache-folder
54
- name : Find Yarn's cache folder
55
- run : echo "::set-output name=path::$(yarn config get cacheFolder)"
56
- - name : Cache Yarn's cache folder
57
-
58
- with :
59
- path : ${{ steps.find-yarn-cache-folder.outputs.path }}
60
- key : yarn-cache-folder-os-${{ runner.os }}-node-${{ env.node-version }}-${{ hashFiles('yarn.lock') }}
61
- restore-keys : |
62
- yarn-cache-folder-os-${{ runner.os }}-node-${{ env.node-version }}-
63
- yarn-cache-folder-os-${{ runner.os }}-
42
+ node-version : 20
43
+ cache : yarn
64
44
- name : Build and release
65
45
run : |
66
46
yarn install --immutable
0 commit comments