Skip to content

Commit 174e873

Browse files
committed
fix: add NODE_OPTIONS for build step to prevent OOM
1 parent 6e5534f commit 174e873

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444

4545
- name: Build
4646
run: npm run build
47+
env:
48+
NODE_OPTIONS: '--max-old-space-size=4096'
4749

4850
- name: Package Windows ${{ matrix.arch }}
4951
run: npx electron-builder --win --${{ matrix.arch }} -p never
@@ -94,6 +96,8 @@ jobs:
9496

9597
- name: Build
9698
run: npm run build
99+
env:
100+
NODE_OPTIONS: '--max-old-space-size=4096'
97101

98102
- name: Package macOS ${{ matrix.arch }}
99103
run: npx electron-builder --mac --${{ matrix.arch }} -p never
@@ -143,6 +147,8 @@ jobs:
143147

144148
- name: Build
145149
run: npm run build
150+
env:
151+
NODE_OPTIONS: '--max-old-space-size=4096'
146152

147153
- name: Package Linux ${{ matrix.arch }}
148154
run: npx electron-builder --linux --${{ matrix.arch }} -p never

0 commit comments

Comments
 (0)