|
44 | 44 | # The npm build packages every workspace dependency of the CLI, and |
45 | 45 | # `@executablemd/web` carries a generated browser bundle that is not |
46 | 46 | # committed. Without this the CLI's npm artifact cannot be built at all. |
| 47 | + # Preparing is its own step: a build installs nothing (AGENTS.md). |
| 48 | + - name: Install dependencies |
| 49 | + run: deno task deps |
| 50 | + |
47 | 51 | - name: Build the browser bundle |
48 | 52 | run: deno task build:web |
49 | 53 |
|
|
61 | 65 | with: |
62 | 66 | deno-version: v2.9.1 |
63 | 67 |
|
| 68 | + - name: Install dependencies |
| 69 | + run: deno task deps |
| 70 | + |
64 | 71 | # With the generated bundle absent the negated `publish.exclude` glob |
65 | 72 | # matches nothing and the dry run quietly checks a package the release |
66 | 73 | # would never upload. Building first makes this validate the real shape. |
|
79 | 86 | with: |
80 | 87 | deno-version: v2.9.1 |
81 | 88 |
|
| 89 | + - name: Install dependencies |
| 90 | + run: deno task deps |
| 91 | + |
82 | 92 | - name: Build the xmd binary |
83 | 93 | run: deno task build |
84 | 94 |
|
@@ -169,6 +179,38 @@ jobs: |
169 | 179 | --component-dir smoke-test/agent/components \ |
170 | 180 | --raw |
171 | 181 |
|
| 182 | + # The chain `deno task verify:clean` runs locally, on a checkout that is clean |
| 183 | + # by construction. It is the regression for #279's ownership claim: a build |
| 184 | + # that installs anything prunes pnpm's links and the resolution probe fails. |
| 185 | + # It duplicates work other jobs do — that is the cost of asserting the whole |
| 186 | + # chain end to end rather than each link separately. |
| 187 | + composability: |
| 188 | + runs-on: ubuntu-latest |
| 189 | + steps: |
| 190 | + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 |
| 191 | + |
| 192 | + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 |
| 193 | + with: |
| 194 | + node-version: "22" |
| 195 | + |
| 196 | + - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 |
| 197 | + |
| 198 | + - uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3 |
| 199 | + with: |
| 200 | + deno-version: v2.9.1 |
| 201 | + |
| 202 | + - name: Prepare both dependency layouts |
| 203 | + run: deno task setup |
| 204 | + |
| 205 | + - name: Build, which must install nothing |
| 206 | + run: deno task build |
| 207 | + |
| 208 | + - name: Both stores still resolve |
| 209 | + run: node scripts/probe-resolution.mjs |
| 210 | + |
| 211 | + - name: Typecheck through the layout the build left behind |
| 212 | + run: pnpm exec tsc --project tsconfig.node.json --noEmit |
| 213 | + |
172 | 214 | site: |
173 | 215 | runs-on: ubuntu-latest |
174 | 216 | steps: |
@@ -215,6 +257,9 @@ jobs: |
215 | 257 | with: |
216 | 258 | deno-version: v2.9.1 |
217 | 259 |
|
| 260 | + - name: Install dependencies |
| 261 | + run: deno task deps |
| 262 | + |
218 | 263 | - name: Build the browser bundle |
219 | 264 | run: deno task build:web |
220 | 265 |
|
|
0 commit comments