Fix CI: skip native scripts during npm ci to prevent OOM
CI/CD / test (push) Successful in 1m26s Details
CI/CD / build-check (push) Failing after 1m0s Details
CI/CD / deploy (push) Has been skipped Details

node-pty native compilation during npm ci uses excessive memory.
Using --ignore-scripts since tests and build don't need native
modules. Removed python3/make/g++ from install step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-04-01 00:12:37 -07:00
parent cdcae789b3
commit bfab3ce043
1 changed files with 9 additions and 5 deletions

View File

@ -17,11 +17,13 @@ jobs:
steps:
- name: Checkout
run: |
apt-get update -qq && apt-get install -y -qq git python3 make g++ > /dev/null 2>&1
apt-get update -qq && apt-get install -y -qq git > /dev/null 2>&1
git clone --depth 1 --branch ${{ github.ref_name }} http://token:${{ github.token }}@server:3000/${{ github.repository }}.git .
- name: Install dependencies
run: npm ci --legacy-peer-deps
run: npm ci --legacy-peer-deps --ignore-scripts
env:
NODE_OPTIONS: "--max-old-space-size=4096"
- name: Type check
run: npx tsc --noEmit
@ -37,14 +39,16 @@ jobs:
steps:
- name: Checkout
run: |
apt-get update -qq && apt-get install -y -qq git python3 make g++ > /dev/null 2>&1
apt-get update -qq && apt-get install -y -qq git > /dev/null 2>&1
git clone --depth 1 --branch ${{ github.ref_name }} http://token:${{ github.token }}@server:3000/${{ github.repository }}.git .
- name: Install dependencies
run: npm ci --legacy-peer-deps
run: npm ci --legacy-peer-deps --ignore-scripts
env:
NODE_OPTIONS: "--max-old-space-size=4096"
- name: Build
run: npm run build
run: npx tsc && npx vite build
env:
NODE_OPTIONS: "--max-old-space-size=4096"