CI: reduce build memory to 2GB to prevent OOM on shared host
This commit is contained in:
parent
e4908cfc11
commit
ec4de41e31
|
|
@ -22,8 +22,6 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci --legacy-peer-deps --ignore-scripts
|
run: npm ci --legacy-peer-deps --ignore-scripts
|
||||||
env:
|
|
||||||
NODE_OPTIONS: "--max-old-space-size=4096"
|
|
||||||
|
|
||||||
- name: Type check
|
- name: Type check
|
||||||
run: npx tsc --noEmit
|
run: npx tsc --noEmit
|
||||||
|
|
@ -37,7 +35,7 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npx vite build
|
run: npx vite build
|
||||||
env:
|
env:
|
||||||
NODE_OPTIONS: "--max-old-space-size=4096"
|
NODE_OPTIONS: "--max-old-space-size=2048"
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
|
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue