@@ -17,23 +17,13 @@ jobs:
1717 runs-on : ubuntu-latest
1818 strategy :
1919 matrix :
20- node : [16, 18 ]
20+ node : [18, 20 ]
2121 steps :
2222 - uses : actions/checkout@v3
2323 - uses : actions/setup-node@v3
2424 with :
2525 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
3727 - name : Install dependencies and test
3828 run : |
3929 yarn install --immutable
4939 - uses : actions/checkout@v3
5040 - uses : actions/setup-node@v3
5141 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
6444 - name : Build and release
6545 run : |
6646 yarn install --immutable
0 commit comments