File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -15,20 +15,23 @@ jobs:
15
15
16
16
- uses : actions/setup-python@v4
17
17
with :
18
- python-version : ' 3.11'
18
+ python-version : " 3.11"
19
19
20
20
- name : Setup NodeJS
21
21
uses : ./.github/workflows/actions/setup-node
22
22
23
- - name : Cache app node_modules
24
- uses : actions/cache@v3
23
+ - name : Get Yarn cache directory path
24
+ id : yarn-cache-dir-path
25
+ run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
26
+
27
+ - name : Restore Yarn cache
28
+ uses : actions/cache@v4
29
+ id : yarn-cache
25
30
with :
26
- path : |
27
- app/node_modules
28
- # Cache will be invalidated if package.json or yarn.lock changes
29
- key : ${{ runner.os }}-app-node_modules-${{ hashFiles('app/package.json', 'app/yarn.lock') }}
31
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
32
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
30
33
restore-keys : |
31
- ${{ runner.os }}-app-node_modules -
34
+ ${{ runner.os }}-yarn -
32
35
33
36
- name : Install dependencies
34
37
working-directory : app
72
75
73
76
- uses : actions/setup-python@v5
74
77
with :
75
- python-version : ' 3.11'
78
+ python-version : " 3.11"
76
79
77
80
- name : Setup NodeJS
78
81
uses : ./.github/workflows/actions/setup-node
You can’t perform that action at this time.
0 commit comments