Skip to content

Commit 660aba3

Browse files
committed
ci: increase Node memory limit for DTS generation
The tsup DTS generation with resolve:true is memory-intensive even when generating types once. CI runners have limited default memory, so we need to explicitly increase the heap size.
1 parent 5db1887 commit 660aba3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ jobs:
3636
npm run lint
3737
3838
- name: Build
39-
run: |
40-
npm run build
39+
run: npm run build
40+
env:
41+
NODE_OPTIONS: '--max-old-space-size=4096'
4142

4243
- name: Test
4344
run: |

.github/workflows/runtime-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
run: |
2020
npm install
2121
npm run build
22+
env:
23+
NODE_OPTIONS: '--max-old-space-size=4096'
2224

2325
- name: Runtime compatibility check
2426
run: npm run check:runtimes

0 commit comments

Comments
 (0)