Skip to content

Commit 9e7250a

Browse files
ci: update ci (#18570)
1 parent 914dbd4 commit 9e7250a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/nodejs.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,15 @@ jobs:
112112
- name: Move artifacts
113113
run: pnpm artifacts
114114
- name: build
115-
run: pnpm build
115+
shell: bash
116+
run: |
117+
if [ "${{ matrix.host }}" = "windows-latest" ]; then
118+
pnpm build:serial
119+
else
120+
pnpm build
121+
fi
122+
env:
123+
NODE_OPTIONS: --max_old_space_size=4096
116124
- name: test
117125
run: pnpm test
118126
env:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"preinstall": "npx only-allow pnpm",
2222
"prepare": "husky install",
2323
"build": "pnpm -r --aggregate-output --filter=./packages/* prod",
24+
"build:serial": "pnpm -r --workspace-concurrency=1 --aggregate-output --filter=./packages/* prod",
2425
"build:binding:debug": "pnpm --filter @tarojs/binding run build:debug",
2526
"build:binding:release": "pnpm --filter @tarojs/binding run build",
2627
"debug": "node scripts/debug.js",

0 commit comments

Comments
 (0)