fix(ci): install bun in the release workflow
`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:
1 file changed
+5
@@ -37,6 +37,11 @@ jobs:
|
||||
- uses: denoland/setup-deno@v2
|
||||
with:
|
||||
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
|
||||
|
||||
# The same gates CI runs. They ran on `main` already, and they run again here because this is
|
||||
|
||||
Reference in new issue
Block a user