ci: reduce ram usage when building
This commit is contained in:
parent
263f4c2b6a
commit
7da9699ebb
@ -15,6 +15,8 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
# 让 npm 使用淘宝源
|
# 让 npm 使用淘宝源
|
||||||
npm_config_registry: https://registry.npmmirror.com
|
npm_config_registry: https://registry.npmmirror.com
|
||||||
|
# 限制内存使用
|
||||||
|
NODE_OPTIONS: --max-old-space-size=512
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: node:18.16.0-bullseye
|
image: node:18.16.0-bullseye
|
||||||
|
Loading…
Reference in New Issue
Block a user