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.
Unified · Split
| @@ -77,6 +77,13 @@ jobs: · 76 unmodified lines | ||
| 77 | 77 | with: |
| 78 | 78 | 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 | 87 | - run: bun install --frozen-lockfile |
| 81 | 88 | |
| 82 | 89 | - name: Build executor preview wrapper |
| @@ -35,6 +35,13 @@ jobs: · 34 unmodified lines | ||
| 35 | 35 | with: |
| 36 | 36 | 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 | 45 | - run: bun install --frozen-lockfile |
| 39 | 46 | |
| 40 | 47 | - name: Deploy |