History

ci: pin Node 22 for bun install in preview and pkg-pr-new Blacksmith jobs

Same better-sqlite3 node-gyp failure as the CI workflow: on blacksmith-4vcpu-ubuntu-2404 the default node is v20.20.0, where better-sqlite3's node-gyp fallback crashes (undici's webidl.markAsUncloneable needs Node 22.10+). Pin Node 22 before `bun install` in preview.yml's deploy job and pkg-pr-new.yml's publish job. The pkg-pr-new build-preview-binary matrix job stays on GitHub-hosted runners and is unaffected.

RhysSullivan committed 4 months ago

Commit 1c4c0d01 parent a41a9c82 files · +14 −0Browse files

Unified · Split

2 files
  1. .github/workflows/pkg-pr-new.yml +7 −0
  2. .github/workflows/preview.yml +7 −0
.github/workflows/pkg-pr-new.yml+7−0
@@ -77,6 +77,13 @@ jobs: · 76 unmodified lines
7777 with:
7878 bun-version: 1.3.11
7979
80+ # No prebuilt better-sqlite3 binary matches this runner, so `bun install`
81+ # builds it from source via node-gyp, whose undici needs Node 22.10+
82+ # (webidl.markAsUncloneable). Pin the same runtime the CI jobs use.
83+ - uses: actions/setup-node@v4
84+ with:
85+ node-version: 22
86+
8087 - run: bun install --frozen-lockfile
8188
8289 - name: Build executor preview wrapper
.github/workflows/preview.yml+7−0
@@ -35,6 +35,13 @@ jobs: · 34 unmodified lines
3535 with:
3636 bun-version: 1.3.11
3737
38+ # No prebuilt better-sqlite3 binary matches this runner, so `bun install`
39+ # builds it from source via node-gyp, whose undici needs Node 22.10+
40+ # (webidl.markAsUncloneable). Pin the same runtime the CI jobs use.
41+ - uses: actions/setup-node@v4
42+ with:
43+ node-version: 22
44+
3845 - run: bun install --frozen-lockfile
3946
4047 - name: Deploy