ci: build with npm + Node 22 so Sharp installs (fixes bun segfault + missing-sharp)

bun --bun crashed Bun runtime (SIGILL); plain bun run hit missing Sharp
native binary for astro:assets. npm install pulls @img/sharp-linux-x64
reliably.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Asger Geel Weirsøe
2026-06-11 19:15:58 +02:00
co-authored by Claude Opus 4.8
parent adbe2e76d7
commit f5850bd0c3
+7 -5
View File
@@ -11,16 +11,18 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install Bun - name: Setup Node
uses: oven-sh/setup-bun@v2 uses: actions/setup-node@v4
with: with:
bun-version: latest node-version: 22
# npm (not bun) so Sharp's native binary for astro:assets image
# optimization installs reliably on the runner
- name: Install dependencies - name: Install dependencies
run: bun install run: npm install
- name: Build site - name: Build site
run: bun --bun run build run: npm run build
- name: Deploy dist/ to CT148 over SSH - name: Deploy dist/ to CT148 over SSH
env: env: