Commit 2d7df61
authored
feat: add turbo-scm-base input for Turbo monorepo support in workflows and documentation (#196)
Adds Turbo monorepo support and monorepo-aware build artifact handling
to the centralized frontend workflows.
## Why
`performance-analytics` is a Turborepo monorepo where builds output to
`apps/*/dist/` rather than a single root `dist/` directory. The existing
`build-output-dir` input only supports a single directory path, which
breaks both artifact upload (nothing found at root `dist/`) and download
(`upload-artifact@v4` strips the common prefix from glob paths, so files
restore to the wrong location).
## Changes
### Turbo SCM support
- New `turbo-scm-base` input on both `frontend-pr-workflow` and
`frontend-deploy-workflow`
- Sets `TURBO_SCM_BASE` env var on all build/test/deploy steps, enabling
Turbo's `--affected` flag
### Monorepo artifact handling
- New `build-artifact-path` input — glob pattern for `upload-artifact`
(e.g. `apps/*/dist`) to capture builds from all apps. Falls back to
`build-output-dir` for single-app repos.
- New `build-artifact-download-path` input — directory to extract
artifacts into. Needed because `upload-artifact@v4` strips the least
common ancestor from glob paths (e.g. `apps/*/dist` uploads as
`insights/dist/`, `dashboards/dist/`). Setting this to `apps` restores
the correct `apps/*/dist/` structure so deploy tools (`jarvis deploy
--path dist`) work from each app's directory.1 parent a6fe9f6 commit 2d7df61
3 files changed
Lines changed: 84 additions & 6 deletions
File tree
- .github/workflows
- reusable-workflows/frontend-pr-workflow
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
64 | 80 | | |
65 | 81 | | |
66 | 82 | | |
| |||
206 | 222 | | |
207 | 223 | | |
208 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
209 | 231 | | |
210 | 232 | | |
211 | 233 | | |
| |||
299 | 321 | | |
300 | 322 | | |
301 | 323 | | |
| 324 | + | |
302 | 325 | | |
303 | 326 | | |
304 | 327 | | |
| |||
308 | 331 | | |
309 | 332 | | |
310 | 333 | | |
| 334 | + | |
311 | 335 | | |
312 | 336 | | |
313 | 337 | | |
| |||
326 | 350 | | |
327 | 351 | | |
328 | 352 | | |
329 | | - | |
| 353 | + | |
330 | 354 | | |
331 | 355 | | |
332 | 356 | | |
| |||
363 | 387 | | |
364 | 388 | | |
365 | 389 | | |
| 390 | + | |
366 | 391 | | |
367 | 392 | | |
368 | 393 | | |
369 | 394 | | |
370 | 395 | | |
| 396 | + | |
371 | 397 | | |
372 | 398 | | |
373 | 399 | | |
| |||
413 | 439 | | |
414 | 440 | | |
415 | 441 | | |
| 442 | + | |
416 | 443 | | |
417 | 444 | | |
418 | 445 | | |
419 | 446 | | |
420 | 447 | | |
421 | | - | |
| 448 | + | |
422 | 449 | | |
423 | 450 | | |
424 | 451 | | |
425 | 452 | | |
426 | 453 | | |
| 454 | + | |
427 | 455 | | |
428 | 456 | | |
429 | 457 | | |
| |||
555 | 583 | | |
556 | 584 | | |
557 | 585 | | |
558 | | - | |
| 586 | + | |
559 | 587 | | |
560 | 588 | | |
561 | 589 | | |
| |||
577 | 605 | | |
578 | 606 | | |
579 | 607 | | |
| 608 | + | |
580 | 609 | | |
581 | 610 | | |
582 | 611 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
186 | 194 | | |
187 | 195 | | |
188 | 196 | | |
189 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
190 | 206 | | |
191 | 207 | | |
192 | 208 | | |
| |||
218 | 234 | | |
219 | 235 | | |
220 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
221 | 243 | | |
222 | 244 | | |
223 | 245 | | |
| |||
304 | 326 | | |
305 | 327 | | |
306 | 328 | | |
| 329 | + | |
307 | 330 | | |
308 | 331 | | |
309 | 332 | | |
310 | 333 | | |
| 334 | + | |
| 335 | + | |
311 | 336 | | |
312 | 337 | | |
313 | 338 | | |
| |||
317 | 342 | | |
318 | 343 | | |
319 | 344 | | |
| 345 | + | |
320 | 346 | | |
321 | 347 | | |
322 | 348 | | |
| |||
336 | 362 | | |
337 | 363 | | |
338 | 364 | | |
339 | | - | |
| 365 | + | |
340 | 366 | | |
341 | 367 | | |
342 | 368 | | |
| |||
371 | 397 | | |
372 | 398 | | |
373 | 399 | | |
| 400 | + | |
374 | 401 | | |
375 | 402 | | |
376 | 403 | | |
377 | 404 | | |
378 | 405 | | |
| 406 | + | |
379 | 407 | | |
380 | 408 | | |
381 | 409 | | |
| |||
417 | 445 | | |
418 | 446 | | |
419 | 447 | | |
| 448 | + | |
420 | 449 | | |
421 | 450 | | |
422 | 451 | | |
| |||
426 | 455 | | |
427 | 456 | | |
428 | 457 | | |
429 | | - | |
| 458 | + | |
430 | 459 | | |
431 | 460 | | |
432 | 461 | | |
433 | 462 | | |
434 | 463 | | |
| 464 | + | |
435 | 465 | | |
436 | 466 | | |
437 | 467 | | |
| |||
469 | 499 | | |
470 | 500 | | |
471 | 501 | | |
472 | | - | |
| 502 | + | |
473 | 503 | | |
474 | 504 | | |
475 | 505 | | |
| |||
489 | 519 | | |
490 | 520 | | |
491 | 521 | | |
| 522 | + | |
492 | 523 | | |
493 | 524 | | |
494 | 525 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
280 | 297 | | |
281 | 298 | | |
282 | 299 | | |
| |||
384 | 401 | | |
385 | 402 | | |
386 | 403 | | |
| 404 | + | |
387 | 405 | | |
388 | 406 | | |
389 | 407 | | |
| |||
0 commit comments