fix(ci): Node.js 24.4.0 will OOM when used with pnpm, rollback to LTS
Read more at: - https://github.com/nodejs/node/issues/59057 - https://github.com/pnpm/pnpm/issues/9743 Details: ``` 7:26:13 PM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1 7:26:13 PM: <--- Last few GCs ---> 7:26:13 PM: [1319:0x7f60e4002000] 8717 ms: Scavenge 593.1 (722.0) -> 593.1 (722.0) MB, pooled: 0 MB, 140.50 / 0.00 ms (average mu = 0.909, current mu = 0.833) allocation failure; 7:26:13 PM: FATAL ERROR: invalid array length Allocation failed - JavaScript heap out of memory 7:26:13 PM: ----- Native stack trace ----- 7:26:13 PM: 1: 0xf1f241 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [node] 7:26:13 PM: 2: 0x13563a0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node] 7:26:13 PM: 3: 0x135648f v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node] 7:26:13 PM: 4: 0x15ecad5 [node] 7:26:13 PM: 5: 0x1a9b37c [node] 7:26:13 PM: 6: 0x7f5f1be76636 ```
This commit is contained in:
@@ -47,11 +47,11 @@ jobs:
|
||||
with:
|
||||
run_install: false
|
||||
|
||||
- name: Install Node.js 24.x
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: pnpm
|
||||
node-version: 24.x
|
||||
# registry-url required. Learn more at
|
||||
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
||||
registry-url: https://registry.npmjs.org
|
||||
|
||||
Reference in New Issue
Block a user