From 899c45fc1b16dc29b94ab5c79fded41da48a7b2e Mon Sep 17 00:00:00 2001 From: Kacper Date: Thu, 18 Dec 2025 12:20:14 +0100 Subject: [PATCH] fix(ci): skip postinstall scripts to avoid OOM in all workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit electron-builder install-app-deps rebuilds native modules and uses too much memory, causing npm install to be killed (exit code 143). Updated workflows: - e2e-tests.yml - test.yml - pr-check.yml 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/e2e-tests.yml | 3 ++- .github/workflows/pr-check.yml | 3 ++- .github/workflows/test.yml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 922ebdf7..5ed31a3b 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -33,7 +33,8 @@ jobs: - name: Install dependencies # Use npm install instead of npm ci to correctly resolve platform-specific # optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries) - run: npm install + # Skip scripts to avoid electron-builder install-app-deps which uses too much memory + run: npm install --ignore-scripts - name: Install Linux native bindings # Workaround for npm optional dependencies bug (npm/cli#4828) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index d93448c4..01e19dbc 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -35,7 +35,8 @@ jobs: - name: Install dependencies # Use npm install instead of npm ci to correctly resolve platform-specific # optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries) - run: npm install + # Skip scripts to avoid electron-builder install-app-deps which uses too much memory + run: npm install --ignore-scripts - name: Install Linux native bindings # Workaround for npm optional dependencies bug (npm/cli#4828) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cadeb2f3..5e2611e2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,7 +32,8 @@ jobs: - name: Install dependencies # Use npm install instead of npm ci to correctly resolve platform-specific # optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries) - run: npm install + # Skip scripts to avoid electron-builder install-app-deps which uses too much memory + run: npm install --ignore-scripts - name: Install Linux native bindings # Workaround for npm optional dependencies bug (npm/cli#4828)