99 steps :
1010 - 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
@@ -22,14 +22,16 @@ jobs:
2222 run : corepack enable
2323 - uses : actions/cache@v4
2424 id : yarn-cache
25- name : Cache npm deps
25+ name : Load Yarn cache
2626 with :
2727 path : |
28- node_modules
29- **/node_modules
30- key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
31- - run : yarn install --immutable
32- if : steps.yarn-cache.outputs.cache-hit != 'true'
28+ .yarn/cache
29+ key : ${{ runner.os }}-yarn-cache-${{ hashFiles('yarn.lock') }}
30+ restore-keys : |
31+ ${{ runner.os }}-yarn-cache-
32+ - name : Install dependencies
33+ shell : bash
34+ run : yarn install --immutable --network-timeout 100000
3335 - uses : actions/cache@v4
3436 id : dist
3537 name : Cache dist
4850 steps :
4951 - uses : actions/checkout@v4
5052 - run : |
51- if [[ ! -z "${GH_PR_NUM}" ]]; then
53+ if [[ ! -z "${GH_PR_NUM}" ]]; then
5254 echo "Checking out PR"
5355 git fetch origin pull/$GH_PR_NUM/head:tmp
5456 git checkout tmp
@@ -61,23 +63,22 @@ jobs:
6163 run : corepack enable
6264 - uses : actions/cache@v4
6365 id : yarn-cache
64- name : Cache npm deps
66+ name : Load Yarn cache
6567 with :
6668 path : |
67- node_modules
68- **/node_modules
69- key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
70- - run : yarn install --immutable
71- if : steps.yarn-cache.outputs.cache-hit != 'true'
69+ .yarn/cache
70+ key : ${{ runner.os }}-yarn-cache-${{ hashFiles('yarn.lock') }}
71+ restore-keys : |
72+ ${{ runner.os }}-yarn-cache-
73+ - name : Install dependencies
74+ shell : bash
75+ run : yarn install --immutable --network-timeout 100000
7276 - uses : actions/cache@v4
7377 id : lint-cache
7478 name : Load lint cache
7579 with :
7680 path : ' .eslintcache'
7781 key : ${{ runner.os }}-lint-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
78- - name : Enable Corepack
79- shell : bash
80- run : corepack enable
8182 - name : ESLint
8283 run : yarn lint:js
8384 - name : MDLint
9192 - uses : actions/checkout@v4
9293 # Yes, we really want to checkout the PR
9394 - run : |
94- if [[ ! -z "${GH_PR_NUM}" ]]; then
95+ if [[ ! -z "${GH_PR_NUM}" ]]; then
9596 echo "Checking out PR"
9697 git fetch origin pull/$GH_PR_NUM/head:tmp
9798 git checkout tmp
@@ -104,23 +105,22 @@ jobs:
104105 run : corepack enable
105106 - uses : actions/cache@v4
106107 id : yarn-cache
107- name : Cache npm deps
108+ name : Load Yarn cache
108109 with :
109110 path : |
110- node_modules
111- **/node_modules
112- ~/.cache/Cypress
113- ~/. cache/puppeteer
114- key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
115- - run : yarn install --immutable
116- if : steps. yarn-cache.outputs.cache-hit != 'true'
111+ .yarn/cache
112+ key : ${{ runner.os }}-yarn-cache-${{ hashFiles('yarn.lock') }}
113+ restore-keys : |
114+ ${{ runner.os }}-yarn- cache-
115+ - name : Install dependencies
116+ shell : bash
117+ run : yarn install --immutable --network-timeout 100000
117118 - uses : actions/cache@v4
118119 id : dist
119120 name : Cache dist
120121 with :
121122 path : |
122123 packages/*/dist
123- packages/react-styles/css
124124 key : ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
125125 - name : Build dist
126126 run : yarn build
@@ -136,7 +136,7 @@ jobs:
136136 - uses : actions/checkout@v4
137137 # Yes, we really want to checkout the PR
138138 - run : |
139- if [[ ! -z "${GH_PR_NUM}" ]]; then
139+ if [[ ! -z "${GH_PR_NUM}" ]]; then
140140 echo "Checking out PR"
141141 git fetch origin pull/$GH_PR_NUM/head:tmp
142142 git checkout tmp
@@ -149,23 +149,23 @@ jobs:
149149 run : corepack enable
150150 - uses : actions/cache@v4
151151 id : yarn-cache
152- name : Cache npm deps
152+ name : Load Yarn cache
153153 with :
154154 path : |
155- node_modules
156- **/node_modules
157- ~/.cache/Cypress
158- ~/.cache/puppeteer
159- key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
160- - run : yarn install --immutable
161- if : steps.yarn-cache.outputs.cache-hit != 'true'
155+ .yarn/cache
156+ ~/.cache/puppeteer
157+ key : ${{ runner.os }}-yarn-cache-${{ hashFiles('yarn.lock') }}
158+ restore-keys : |
159+ ${{ runner.os }}-yarn-cache-
160+ - name : Install dependencies
161+ shell : bash
162+ run : yarn install --immutable --network-timeout 100000
162163 - uses : actions/cache@v4
163164 id : dist
164165 name : Cache dist
165166 with :
166167 path : |
167168 packages/*/dist
168- packages/react-styles/css
169169 key : ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
170170 - name : Build dist
171171 run : yarn build
0 commit comments