File tree Expand file tree Collapse file tree 2 files changed +24
-18
lines changed Expand file tree Collapse file tree 2 files changed +24
-18
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,21 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v4
15
+
16
+ - name : Set Node.js
17
+ uses : actions/setup-node@v4
18
+ with :
19
+ node-version : 20.x
20
+
21
+ - name : Corepack enable
22
+ run : corepack enable
23
+
24
+ - name : Yarn setup
25
+ run : corepack prepare --activate
15
26
16
27
- name : Get yarn cache directory path
17
28
id : yarn-cache-dir-path
18
- run : echo "::set-output name=dir::$(yarn cache dir )"
29
+ run : echo "::set-output name=dir::$(yarn config get cacheFolder )"
19
30
20
31
- uses : actions/cache@v4
21
32
id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
25
36
restore-keys : |
26
37
${{ runner.os }}-yarn-
27
38
28
- - name : Set Node.js
29
- uses : actions/setup-node@v4
30
- with :
31
- node-version : 20.x
39
+
32
40
33
41
- name : Install dependencies
34
42
run : yarn install
Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v4
12
-
13
- - name : Get yarn cache directory path
14
- id : yarn-cache-dir-path
15
- run : echo "::set-output name=dir::$(yarn cache dir)"
16
-
17
- - uses : actions/cache@v4
18
- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
19
- with :
20
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
21
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22
- restore-keys : |
23
- ${{ runner.os }}-yarn-
24
-
12
+
25
13
- name : Set Node.js
26
14
uses : actions/setup-node@v4
27
15
with :
28
16
node-version : 20.x
29
17
18
+ - name : Corepack enable
19
+ run : corepack enable
20
+
21
+ - name : Yarn setup
22
+ run : corepack prepare --activate
23
+
24
+ - name : Get yarn cache directory path
25
+ id : yarn-cache-dir-path
26
+ run : echo "::set-output name=dir::$(yarn config get cacheFolder)"
27
+
30
28
- name : Install dependencies
31
29
run : yarn install
32
30
You can’t perform that action at this time.
0 commit comments