77 env :
88 GH_PR_NUM : ${{ github.event.number }}
99 steps :
10- - uses : actions/checkout@v2
10+ - uses : actions/checkout@v4
1111 - run : |
12- if [[ ! -z "${GH_PR_NUM}" ]]; then
12+ 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@v3
17+ - uses : actions/setup-node@v4
1818 with :
19- node-version : ' 18'
19+ node-version-file : ' .nvmrc'
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+ key : ${{ runner.os }}-yarn-22 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
29+ - run : yarn install --immutable
2930 if : steps.yarn-cache.outputs.cache-hit != 'true'
3031 - uses : actions/cache@v4
3132 id : dist
3233 name : Cache dist
3334 with :
3435 path : |
3536 packages/*/dist
36- key : ${{ runner.os }}-dist-14 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
37+ key : ${{ runner.os }}-dist-22 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
3738 - name : Build dist
3839 run : yarn build
3940 if : steps.dist.outputs.cache-hit != 'true'
@@ -43,32 +44,33 @@ jobs:
4344 GH_PR_NUM : ${{ github.event.number }}
4445 needs : build
4546 steps :
46- - uses : actions/checkout@v2
47+ - uses : actions/checkout@v4
4748 - run : |
48- if [[ ! -z "${GH_PR_NUM}" ]]; then
49+ if [[ ! -z "${GH_PR_NUM}" ]]; then
4950 echo "Checking out PR"
5051 git fetch origin pull/$GH_PR_NUM/head:tmp
5152 git checkout tmp
5253 fi
53- - uses : actions/setup-node@v3
54+ - uses : actions/setup-node@v4
5455 with :
55- node-version : ' 20'
56+ node-version-file : ' .nvmrc'
57+ - run : corepack enable
5658 - uses : actions/cache@v4
5759 id : yarn-cache
5860 name : Cache npm deps
5961 with :
6062 path : |
6163 node_modules
6264 **/node_modules
63- key : ${{ runner.os }}-yarn-14 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
64- - run : yarn install --frozen-lockfile
65+ key : ${{ runner.os }}-yarn-22 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
66+ - run : yarn install --immutable
6567 if : steps.yarn-cache.outputs.cache-hit != 'true'
6668 - uses : actions/cache@v4
6769 id : lint-cache
6870 name : Load lint cache
6971 with :
7072 path : ' .eslintcache'
71- key : ${{ runner.os }}-lint-14 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
73+ key : ${{ runner.os }}-lint-22 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
7274 - name : ESLint
7375 run : yarn lint:js
7476 - name : MDLint
@@ -79,17 +81,18 @@ jobs:
7981 GH_PR_NUM : ${{ github.event.number }}
8082 needs : build
8183 steps :
82- - uses : actions/checkout@v2
84+ - uses : actions/checkout@v4
8385 # Yes, we really want to checkout the PR
8486 - run : |
85- if [[ ! -z "${GH_PR_NUM}" ]]; then
87+ if [[ ! -z "${GH_PR_NUM}" ]]; then
8688 echo "Checking out PR"
8789 git fetch origin pull/$GH_PR_NUM/head:tmp
8890 git checkout tmp
8991 fi
90- - uses : actions/setup-node@v3
92+ - uses : actions/setup-node@v4
9193 with :
92- node-version : ' 20'
94+ node-version-file : ' .nvmrc'
95+ - run : corepack enable
9396 - uses : actions/cache@v4
9497 id : yarn-cache
9598 name : Cache npm deps
98101 node_modules
99102 **/node_modules
100103 ~/.cache/Cypress
101- key : ${{ runner.os }}-yarn-14 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
102- - run : yarn install --frozen-lockfile
104+ key : ${{ runner.os }}-yarn-22 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
105+ - run : yarn install --immutable
103106 if : steps.yarn-cache.outputs.cache-hit != 'true'
104107 - uses : actions/cache@v4
105108 id : dist
@@ -108,7 +111,7 @@ jobs:
108111 path : |
109112 packages/*/dist
110113 packages/react-styles/css
111- key : ${{ runner.os }}-dist-14 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
114+ key : ${{ runner.os }}-dist-22 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
112115 - name : Build dist
113116 run : yarn build
114117 if : steps.dist.outputs.cache-hit != 'true'
@@ -120,17 +123,18 @@ jobs:
120123 GH_PR_NUM : ${{ github.event.number }}
121124 needs : build
122125 steps :
123- - uses : actions/checkout@v2
126+ - uses : actions/checkout@v4
124127 # Yes, we really want to checkout the PR
125128 - run : |
126- if [[ ! -z "${GH_PR_NUM}" ]]; then
129+ if [[ ! -z "${GH_PR_NUM}" ]]; then
127130 echo "Checking out PR"
128131 git fetch origin pull/$GH_PR_NUM/head:tmp
129132 git checkout tmp
130133 fi
131- - uses : actions/setup-node@v3
134+ - uses : actions/setup-node@v4
132135 with :
133- node-version : ' 20'
136+ node-version-file : ' .nvmrc'
137+ - run : corepack enable
134138 - uses : actions/cache@v4
135139 id : yarn-cache
136140 name : Cache npm deps
@@ -139,8 +143,8 @@ jobs:
139143 node_modules
140144 **/node_modules
141145 ~/.cache/Cypress
142- key : ${{ runner.os }}-yarn-14 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
143- - run : yarn install --frozen-lockfile
146+ key : ${{ runner.os }}-yarn-22 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
147+ - run : yarn install --immutable
144148 if : steps.yarn-cache.outputs.cache-hit != 'true'
145149 - uses : actions/cache@v4
146150 id : dist
@@ -149,7 +153,7 @@ jobs:
149153 path : |
150154 packages/*/dist
151155 packages/react-styles/css
152- key : ${{ runner.os }}-dist-14 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json ', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
156+ key : ${{ runner.os }}-dist-22 -${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
153157 - name : Build dist
154158 run : yarn build
155159 if : steps.dist.outputs.cache-hit != 'true'
0 commit comments