File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -13,27 +13,20 @@ jobs:
1313 - uses : actions/checkout@v3
1414 - uses : actions/setup-node@v3
1515 with :
16- node-version : 16
16+ node-version : 18
1717 - name : Cache node modules
1818 id : cache-yarn
19- uses : actions/cache@v3
20- env :
21- cache-name : cache-node-module
19+ uses : actions/cache@v2
2220 with :
23- path : ~/.cache/yarn
24- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
21+ path : |
22+ ~/.cache/yarn
23+ node_modules
24+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock', '**/package.json') }}
2525 restore-keys : |
26- ${{ runner.os }}-build-${{ env.cache-name }}-
27- ${{ runner.os }}-build-
28- ${{ runner.os }}-
29-
30- - if : ${{ steps.cache-yarn.outputs.cache-hit != 'true' }}
31- name : List the state of node modules
32- continue-on-error : true
33- run : yarn list
26+ ${{ runner.os }}-yarn-
3427
3528 - name : Install Dependencies
36- run : yarn install
29+ run : yarn install --frozen-lockfile
3730
3831 - name : Yarn Build
3932 run : yarn build
You can’t perform that action at this time.
0 commit comments