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:
19
19
fetch-depth : 0
20
20
persist-credentials : false
21
21
token : ${{secrets.GH_TOKEN}}
22
- - uses : actions/setup-node@v2
22
+
23
+ - uses : actions/setup-node@v3
23
24
with :
24
25
node-version : 16
25
26
registry-url : " https://registry.npmjs.org"
27
+ cache : yarn
26
28
27
29
- name : Mkdir .aws
28
30
run : mkdir -p ~/.aws
46
48
aws_secret_access_key = ${{ secrets.AWS_SECRET_ACCESS_KEY }}
47
49
EOF
48
50
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
-
63
51
- 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
66
53
67
54
- name : Build
68
55
run : yarn build
You can’t perform that action at this time.
0 commit comments