77 env :
88 GH_PR_NUM : ${{ github.event.number }}
99 steps :
10- - uses : actions/checkout@v2
10+ - uses : actions/checkout@v4
1111 - run : |
1212 if [[ ! -z "${GH_PR_NUM}" ]]; then
1313 echo "Checking out PR"
1414 git fetch origin pull/$GH_PR_NUM/head:tmp
1515 git checkout tmp
1616 fi
17- - uses : actions/setup-node@v1
17+ - uses : actions/setup-node@v4
1818 with :
1919 node-version : ' 18'
20+ - run : corepack enable
2021 - uses : actions/cache@v4
2122 id : yarn-cache
2223 name : Cache npm deps
2324 with :
2425 path : |
2526 node_modules
2627 **/node_modules
27- key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
28- - run : yarn install --frozen-lockfile
28+ .yarn/cache
29+ key : ${{ runner.os }}-yarn-4-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
30+ - run : yarn install --immutable
2931 if : steps.yarn-cache.outputs.cache-hit != 'true'
3032 - uses : actions/cache@v4
3133 id : dist
3234 name : Cache dist
3335 with :
3436 path : |
3537 packages/*/dist
36- key : ${{ runner.os }}-dist-14 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
38+ key : ${{ runner.os }}-dist-4 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
3739 - name : Build dist
3840 run : yarn build
3941 if : steps.dist.outputs.cache-hit != 'true'
@@ -43,32 +45,34 @@ jobs:
4345 GH_PR_NUM : ${{ github.event.number }}
4446 needs : build
4547 steps :
46- - uses : actions/checkout@v2
48+ - uses : actions/checkout@v4
4749 - run : |
4850 if [[ ! -z "${GH_PR_NUM}" ]]; then
4951 echo "Checking out PR"
5052 git fetch origin pull/$GH_PR_NUM/head:tmp
5153 git checkout tmp
5254 fi
53- - uses : actions/setup-node@v1
55+ - uses : actions/setup-node@v4
5456 with :
5557 node-version : ' 18'
58+ - run : corepack enable
5659 - uses : actions/cache@v4
5760 id : yarn-cache
5861 name : Cache npm deps
5962 with :
6063 path : |
6164 node_modules
6265 **/node_modules
63- key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
64- - run : yarn install --frozen-lockfile
66+ .yarn/cache
67+ key : ${{ runner.os }}-yarn-4-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
68+ - run : yarn install --immutable
6569 if : steps.yarn-cache.outputs.cache-hit != 'true'
6670 - uses : actions/cache@v4
6771 id : lint-cache
6872 name : Load lint cache
6973 with :
7074 path : ' .eslintcache'
71- key : ${{ runner.os }}-lint-14 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
75+ key : ${{ runner.os }}-lint-4 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
7276 - name : ESLint
7377 run : yarn lint:js
7478 - name : MDLint
@@ -79,17 +83,18 @@ jobs:
7983 GH_PR_NUM : ${{ github.event.number }}
8084 needs : build
8185 steps :
82- - uses : actions/checkout@v2
86+ - uses : actions/checkout@v4
8387 # Yes, we really want to checkout the PR
8488 - run : |
8589 if [[ ! -z "${GH_PR_NUM}" ]]; then
8690 echo "Checking out PR"
8791 git fetch origin pull/$GH_PR_NUM/head:tmp
8892 git checkout tmp
8993 fi
90- - uses : actions/setup-node@v1
94+ - uses : actions/setup-node@v4
9195 with :
9296 node-version : ' 18'
97+ - run : corepack enable
9398 - uses : actions/cache@v4
9499 id : yarn-cache
95100 name : Cache npm deps
99104 **/node_modules
100105 ~/.cache/Cypress
101106 key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
102- - run : yarn install --frozen-lockfile
107+ - run : yarn install --immutable
103108 if : steps.yarn-cache.outputs.cache-hit != 'true'
104109 - uses : actions/cache@v4
105110 id : dist
@@ -108,7 +113,7 @@ jobs:
108113 path : |
109114 packages/*/dist
110115 packages/react-styles/css
111- key : ${{ runner.os }}-dist-14 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
116+ key : ${{ runner.os }}-dist-4 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
112117 - name : Build dist
113118 run : yarn build
114119 if : steps.dist.outputs.cache-hit != 'true'
@@ -120,17 +125,18 @@ jobs:
120125 GH_PR_NUM : ${{ github.event.number }}
121126 needs : build
122127 steps :
123- - uses : actions/checkout@v2
128+ - uses : actions/checkout@v4
124129 # Yes, we really want to checkout the PR
125130 - run : |
126131 if [[ ! -z "${GH_PR_NUM}" ]]; then
127132 echo "Checking out PR"
128133 git fetch origin pull/$GH_PR_NUM/head:tmp
129134 git checkout tmp
130135 fi
131- - uses : actions/setup-node@v1
136+ - uses : actions/setup-node@v4
132137 with :
133138 node-version : ' 18'
139+ - run : corepack enable
134140 - uses : actions/cache@v4
135141 id : yarn-cache
136142 name : Cache npm deps
@@ -140,7 +146,7 @@ jobs:
140146 **/node_modules
141147 ~/.cache/Cypress
142148 key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
143- - run : yarn install --frozen-lockfile
149+ - run : yarn install --immutable
144150 if : steps.yarn-cache.outputs.cache-hit != 'true'
145151 - uses : actions/cache@v4
146152 id : dist
@@ -149,7 +155,7 @@ jobs:
149155 path : |
150156 packages/*/dist
151157 packages/react-styles/css
152- key : ${{ runner.os }}-dist-14 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
158+ key : ${{ runner.os }}-dist-4 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
153159 - name : Build dist
154160 run : yarn build
155161 if : steps.dist.outputs.cache-hit != 'true'
0 commit comments