From 7cce7149407f865b018390496178ea148ecbe145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asger=20Geel=20Weirs=C3=B8e?= Date: Thu, 11 Jun 2026 19:17:06 +0200 Subject: [PATCH] ci: npm install --include=optional so Sharp platform binary installs The runner omits optional deps, dropping @img/sharp-linux-x64 (sharps own optional platform package). --include=optional forces it back in. Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/deploy.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index b09eeaf..ec7068e 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -16,10 +16,11 @@ jobs: with: node-version: 22 - # npm (not bun) so Sharp's native binary for astro:assets image - # optimization installs reliably on the runner + # npm (not bun) + --include=optional so Sharp's platform binary + # (@img/sharp-linux-x64, an optional dep) installs on the runner, + # which otherwise omits optional deps -> astro:assets MissingSharp - name: Install dependencies - run: npm install + run: npm install --include=optional - name: Build site run: npm run build