From 32b95f24a1f540223ac28b314bf9ec5ac95c30e2 Mon Sep 17 00:00:00 2001 From: Jack Felke Date: Wed, 4 Mar 2026 11:15:26 -0700 Subject: [PATCH] fix(ci): fallback to --ignore-optional when sharp install flakes sharp (transitive dep from @xenova/transformers) frequently fails to install in CI due to network issues downloading libvips. Since preflight only uses text embeddings (not image processing), sharp is not required at runtime. This adds a fallback so CI doesn't fail on transient network errors. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8fab83c..013c1d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - run: npm ci + - run: npm ci || npm ci --ignore-optional - run: npm run build - run: npm run lint - run: npm test