fix(ci): install bun in the release workflow
CI / dco (pull_request) Successful in 4s
CI / runtimes (bun) (pull_request) Successful in 10s
CI / build (pull_request) Successful in 14s
CI / runtimes (edge) (pull_request) Successful in 9s
CI / runtimes (deno) (pull_request) Successful in 10s

`release.yml` runs `npm run test:bun` but never installed bun. `ci.yml` gets
away with one setup action per matrix entry; the release job runs every suite in
the same job, so it needs both.

Leaving it out does not skip the suite. `scripts/run-runtime.mjs` spawns `bun`,
gets `ENOENT`, and `process.exit(status ?? 1)` turns a missing binary into a
failure — verified: `spawnSync` on a missing command returns `status: null`,
which that expression maps to 1.

Nothing would have been published, since the gates run before the publish. What
it would have cost is a tag sitting on GitHub with no release against it, which
has to be deleted before the same tag can be tried again.

Found during the pre-flight for the first tag, by checking which tools the steps
use against which ones the job installs, rather than by pushing the tag and
reading the failure.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-09-23 12:52:21 -05:00
1 parent 1f3a42e747
commit fc495fa3cb
1 file changed
+5
+5
View File
@@ -37,6 +37,11 @@ jobs:
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v2
with: with:
deno-version: v2.x deno-version: v2.x
# Both runtimes, because the gates below run both suites. `ci.yml` installs these one per
# matrix entry; here every suite runs in the same job, so both have to be present. Leaving
# bun out does not skip its suite — `scripts/run-runtime.mjs` spawns `bun`, gets ENOENT, and
# `process.exit(status ?? 1)` turns that into a failure that aborts the release.
- uses: oven-sh/setup-bun@v2
- run: npm ci - run: npm ci
# The same gates CI runs. They ran on `main` already, and they run again here because this is # The same gates CI runs. They ran on `main` already, and they run again here because this is