Skip to content

Commit 1c4c0d0

Browse files
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. Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
1 parent a41a9c8 commit 1c4c0d0

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/pkg-pr-new.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ jobs:
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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ jobs:
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

0 commit comments

Comments
 (0)