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
@@ -19,10 +19,12 @@ jobs:
1919 node-version : ' 20'
2020 - name : Enable Corepack
2121 shell : bash
22- run : corepack enable
22+ run : |
23+ corepack enable
24+ corepack prepare yarn@4.10.3 --activate
2325 - uses : actions/cache@v4
2426 id : yarn-cache
25- name : Cache npm deps
27+ name : Cache yarn deps
2628 with :
2729 path : |
2830 node_modules
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
@@ -58,10 +60,12 @@ jobs:
5860 node-version : ' 20'
5961 - name : Enable Corepack
6062 shell : bash
61- run : corepack enable
63+ run : |
64+ corepack enable
65+ corepack prepare yarn@4.10.3 --activate
6266 - uses : actions/cache@v4
6367 id : yarn-cache
64- name : Cache npm deps
68+ name : Cache yarn deps
6569 with :
6670 path : |
6771 node_modules
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
@@ -101,16 +102,16 @@ jobs:
101102 node-version : ' 20'
102103 - name : Enable Corepack
103104 shell : bash
104- run : corepack enable
105+ run : |
106+ corepack enable
107+ corepack prepare yarn@4.10.3 --activate
105108 - uses : actions/cache@v4
106109 id : yarn-cache
107- name : Cache npm deps
110+ name : Cache yarn deps
108111 with :
109112 path : |
110113 node_modules
111114 **/node_modules
112- ~/.cache/Cypress
113- ~/.cache/puppeteer
114115 key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
115116 - run : yarn install --immutable
116117 if : steps.yarn-cache.outputs.cache-hit != 'true'
@@ -120,7 +121,6 @@ jobs:
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
@@ -146,15 +146,16 @@ jobs:
146146 node-version : ' 20'
147147 - name : Enable Corepack
148148 shell : bash
149- run : corepack enable
149+ run : |
150+ corepack enable
151+ corepack prepare yarn@4.10.3 --activate
150152 - uses : actions/cache@v4
151153 id : yarn-cache
152- name : Cache npm deps
154+ name : Cache yarn deps
153155 with :
154156 path : |
155157 node_modules
156158 **/node_modules
157- ~/.cache/Cypress
158159 ~/.cache/puppeteer
159160 key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
160161 - run : yarn install --immutable
@@ -165,7 +166,6 @@ jobs:
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