1717 steps :
1818 - uses : actions/checkout@v4
1919 - run : corepack enable
20- - name : Get yarn cache directory path
21- id : yarn-cache-dir-path
22- run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
23- - uses : actions/cache@v4
24- id : yarn-cache
20+ - uses : actions/setup-node@v4
2521 with :
26- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
27- key : ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
28- restore-keys : |
29- ${{ runner.os }}-yarn-
22+ cache : ' yarn'
3023 - run : yarn --immutable
3124 - run : yarn ci
3225
@@ -36,16 +29,12 @@ jobs:
3629 steps :
3730 - uses : actions/checkout@v4
3831 - run : corepack enable
39- - name : Get yarn cache directory path
40- id : yarn-cache-dir-path
41- run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
42- - uses : actions/cache@v4
43- id : yarn-cache
32+ - uses : actions/setup-node@v4
4433 with :
45- path : ${{ steps. yarn-cache-dir-path.outputs.dir }}
46- key : ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
47- restore-keys : |
48- ${{ runner.os }}-yarn-
34+ cache : ' yarn'
35+ cache-dependency-path : |
36+ yarn.lock
37+ **/package.json
4938 - run : yarn --immutable && yarn build
5039 - name : Check if js dist files are current
5140 id : changes
@@ -134,16 +123,12 @@ jobs:
134123 steps :
135124 - uses : actions/checkout@v4
136125 - run : corepack enable
137- - name : Get yarn cache directory path
138- id : yarn-cache-dir-path
139- run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
140- - uses : actions/cache@v4
141- id : yarn-cache
126+ - uses : actions/setup-node@v4
142127 with :
143- path : ${{ steps. yarn-cache-dir-path.outputs.dir }}
144- key : ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
145- restore-keys : |
146- ${{ runner.os }}-yarn-
128+ cache : ' yarn'
129+ cache-dependency-path : |
130+ yarn.lock
131+ **/package.json
147132 - run : yarn --immutable
148133 - run : yarn playwright install
149134 - run : yarn test
0 commit comments