@@ -100,12 +100,35 @@ jobs:
100
100
- name : Build
101
101
run : npm run build -ws --if-present
102
102
103
+ build-components-json :
104
+ runs-on : ubuntu-latest
105
+ steps :
106
+ - name : Checkout repository
107
+ uses : actions/checkout@v4
108
+ - name : Use Node.js 20.x
109
+ uses : actions/setup-node@v4
110
+ with :
111
+ node-version : 22
112
+ cache : " npm"
113
+ - name : Install dependencies
114
+ run : npm ci
115
+ - name : Build storybook to generate story IDs
116
+ run : npm run build:storybook
117
+ working-directory : packages/react
118
+ - name : Build components.json
119
+ run : npx tsx script/components-json/build.ts --storybook-data 'storybook-static/index.json'
120
+ working-directory : packages/react
121
+ - name : Build hooks.json
122
+ run : npx tsx script/hooks-json/build.ts
123
+ working-directory : packages/react
124
+
103
125
vrt-runner :
104
126
runs-on : ubuntu-latest-16-cores
105
127
strategy :
106
128
fail-fast : false
107
129
matrix :
108
130
shard : [1, 2, 3, 4]
131
+ needs : build-components-json
109
132
steps :
110
133
- uses : actions/checkout@v4
111
134
- name : Use Node.js 20.x
@@ -178,6 +201,7 @@ jobs:
178
201
fail-fast : false
179
202
matrix :
180
203
shard : [1, 2, 3, 4]
204
+ needs : build-components-json
181
205
env :
182
206
VITE_PRIMER_REACT_CSS_MODULES_TEAM : 1
183
207
VITE_PRIMER_REACT_CSS_MODULES_STAFF : 1
@@ -248,28 +272,6 @@ jobs:
248
272
if : ${{ needs.vrt-runner-all-flags.result == 'failure' }}
249
273
run : exit 1
250
274
251
- build-components-json :
252
- runs-on : ubuntu-latest
253
- steps :
254
- - name : Checkout repository
255
- uses : actions/checkout@v4
256
- - name : Use Node.js 20.x
257
- uses : actions/setup-node@v4
258
- with :
259
- node-version : 22
260
- cache : " npm"
261
- - name : Install dependencies
262
- run : npm ci
263
- - name : Build storybook to generate story IDs
264
- run : npm run build:storybook
265
- working-directory : packages/react
266
- - name : Build components.json
267
- run : npx tsx script/components-json/build.ts --storybook-data 'storybook-static/index.json'
268
- working-directory : packages/react
269
- - name : Build hooks.json
270
- run : npx tsx script/hooks-json/build.ts
271
- working-directory : packages/react
272
-
273
275
aat-runner :
274
276
runs-on : ubuntu-latest-16-cores
275
277
strategy :
@@ -349,6 +351,7 @@ jobs:
349
351
fail-fast : false
350
352
matrix :
351
353
shard : [1, 2, 3, 4]
354
+ needs : build-components-json
352
355
env :
353
356
VITE_PRIMER_REACT_CSS_MODULES_TEAM : 1
354
357
VITE_PRIMER_REACT_CSS_MODULES_STAFF : 1
0 commit comments