fix: increase Node memory to 6GB and add --prefer-offline for npm install

- Increase NODE_OPTIONS from 4GB to 6GB to prevent OOM
- Add --prefer-offline to reduce network calls and speed up install

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
SuperComboGamer
2025-12-15 19:58:12 -05:00
parent 7edca6b823
commit ff318d6ef5
4 changed files with 8 additions and 8 deletions

View File

@@ -34,9 +34,9 @@ jobs:
# Use npm install instead of npm ci to correctly resolve platform-specific
# optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries)
# Increase Node memory limit to prevent OOM during install
run: npm install
run: npm install --prefer-offline
env:
NODE_OPTIONS: --max_old_space_size=4096
NODE_OPTIONS: --max_old_space_size=6144
- name: Install Linux native bindings
# Workaround for npm optional dependencies bug (npm/cli#4828)

View File

@@ -33,9 +33,9 @@ jobs:
# Use npm install instead of npm ci to correctly resolve platform-specific
# optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries)
# Increase Node memory limit to prevent OOM during install
run: npm install
run: npm install --prefer-offline
env:
NODE_OPTIONS: --max_old_space_size=4096
NODE_OPTIONS: --max_old_space_size=6144
- name: Install Linux native bindings
# Workaround for npm optional dependencies bug (npm/cli#4828)

View File

@@ -52,9 +52,9 @@ jobs:
# Use npm install instead of npm ci to correctly resolve platform-specific
# optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries)
# Increase Node memory limit to prevent OOM during install
run: npm install
run: npm install --prefer-offline
env:
NODE_OPTIONS: --max_old_space_size=4096
NODE_OPTIONS: --max_old_space_size=6144
- name: Install Linux native bindings
# Workaround for npm optional dependencies bug (npm/cli#4828)

View File

@@ -33,9 +33,9 @@ jobs:
# Use npm install instead of npm ci to correctly resolve platform-specific
# optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries)
# Increase Node memory limit to prevent OOM during install
run: npm install
run: npm install --prefer-offline
env:
NODE_OPTIONS: --max_old_space_size=4096
NODE_OPTIONS: --max_old_space_size=6144
- name: Install Linux native bindings
# Workaround for npm optional dependencies bug (npm/cli#4828)