File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ jobs:
1919 fetch-depth : 0
2020 persist-credentials : false
2121 token : ${{secrets.GH_TOKEN}}
22- - uses : actions/setup-node@v2
22+
23+ - uses : actions/setup-node@v3
2324 with :
2425 node-version : 16
2526 registry-url : " https://registry.npmjs.org"
27+ cache : yarn
2628
2729 - name : Mkdir .aws
2830 run : mkdir -p ~/.aws
4648 aws_secret_access_key = ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4749 EOF
4850
49- - name : Get cache directory
50- id : npm-cache-dir
51- run : |
52- echo "::set-output name=dir::$(npm config get cache)"
53-
54- - name : Restoring cache
55- id : npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
56- uses : actions/cache@v2
57- with :
58- path : ${{ steps.npm-cache-dir.outputs.dir }}
59- key : ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
60- restore-keys : |
61- ${{ runner.os }}-yarn-
62-
6351 - name : Install Packages
64- if : steps.npm-cache.outputs.cache-hit != 'true'
65- run : yarn install --frozen-lockfile --cache-folder .npm --prefer-offline
52+ run : yarn install --prefer-offline --frozen-lockfile
6653
6754 - name : Build
6855 run : yarn build
You can’t perform that action at this time.
0 commit comments