mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
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:
4
.github/workflows/e2e-tests.yml
vendored
4
.github/workflows/e2e-tests.yml
vendored
@@ -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)
|
||||
|
||||
4
.github/workflows/pr-check.yml
vendored
4
.github/workflows/pr-check.yml
vendored
@@ -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)
|
||||
|
||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -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)
|
||||
|
||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user