Commit 373f153
Single
Before: `deploy.yml` and `ci.yml` ran independently on every push. A
broken library build wouldn't block a site deploy, and a broken site
build wouldn't block a dist publish.
Now one workflow: `build-and-test` runs first (library `pnpm build`);
if it passes, `build-site`/`deploy-site` and `build-dist` fan out in
parallel. PR pushes stop at `build-and-test`.
Also fix the dist branch: npm-dist's `preserve_dirs` mode *replaces*
the built output with only the preserved source dirs (found by
inspecting the first dist-branch run — it had react/ + package.json
but no index.js, and the package.json pointed `main` at the missing
file). Fix: the `build` script copies `react/` into `dist/react/` as a
post-build step, so dist/ is a single self-contained tree; drop
`preserve_dirs: react`, default flattening then does the right thing.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>CI workflow: test → (deploy + dist) in parallel1 parent 34d6048 commit 373f153
3 files changed
Lines changed: 42 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
9 | 18 | | |
10 | 19 | | |
11 | 20 | | |
| |||
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
24 | 63 | | |
25 | 64 | | |
26 | 65 | | |
27 | 66 | | |
28 | 67 | | |
29 | | - | |
| 68 | + | |
| 69 | + | |
30 | 70 | | |
31 | 71 | | |
32 | 72 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments