Skip to content

Commit 153f753

Browse files
authored
fix: solve the problem of memory overflow in packaging (#112)
1 parent 354bccc commit 153f753

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build-home.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ jobs:
4444
run: pnpm -F opentiny-design-home i --no-frozen-lockfile
4545
- name: Build home
4646
run: pnpm build
47+
env:
48+
NODE_OPTIONS: --max-old-space-size=8192

.github/workflows/deploy-github.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
VITE_CONTEXT: /opentiny.design/
6161
VITE_BASE: /opentiny.design/
6262
VITE_EnvName: github
63+
NODE_OPTIONS: --max-old-space-size=8192
6364
- name: Copy files
6465
run: |
6566
cp dist/common/tinyui-design-common.iife.js dist/home

.github/workflows/deploy-obs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
env:
7474
VITE_CONTEXT: /
7575
VITE_BASE: //res-static.opentiny.design/tinyui-design/${{ steps.ver.outputs.value }}/home/
76+
NODE_OPTIONS: --max-old-space-size=8192
7677
- name: Copy files
7778
run: |
7879
cp dist/common/tinyui-design-common.iife.js dist/home

0 commit comments

Comments
 (0)