From 52a821d3bb2e6fc3abe47e497cbf5a654f23e965 Mon Sep 17 00:00:00 2001 From: DhanushSantosh Date: Fri, 16 Jan 2026 19:43:09 +0530 Subject: [PATCH] fix: add --force flag to npm install in CI to allow platform-specific devDependencies dmg-license is a darwin-only package required for macOS DMG building. The CI runs on Linux, so npm install fails when trying to install a platform-specific devDependency. Using --force allows npm to skip platform mismatches instead of erroring out, allowing the build to proceed on non-darwin platforms where the darwin-only dependency will simply be skipped. Co-Authored-By: Claude Haiku 4.5 --- .github/actions/setup-project/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-project/action.yml b/.github/actions/setup-project/action.yml index 75030b90..0fcd1e4f 100644 --- a/.github/actions/setup-project/action.yml +++ b/.github/actions/setup-project/action.yml @@ -41,7 +41,8 @@ runs: # Use npm install instead of npm ci to correctly resolve platform-specific # optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries) # Skip scripts to avoid electron-builder install-app-deps which uses too much memory - run: npm install --ignore-scripts + # Use --force to allow platform-specific dev dependencies like dmg-license on non-darwin platforms + run: npm install --ignore-scripts --force - name: Install Linux native bindings shell: bash