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
77 with:77 with:
78 bun-version: 1.3.1178 bun-version: 1.3.11
79 79
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
80 - run: bun install --frozen-lockfile87 - run: bun install --frozen-lockfile
81 88
82 - name: Build executor preview wrapper89 - name: Build executor preview wrapper
.github/workflows/preview.yml+7−0
@@ -35,6 +35,13 @@ jobs: · 34 unmodified lines
35 with:35 with:
36 bun-version: 1.3.1136 bun-version: 1.3.11
37 37
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
38 - run: bun install --frozen-lockfile45 - run: bun install --frozen-lockfile
39 46
40 - name: Deploy47 - name: Deploy