fix(ci): add npm fallback for frontend install OOM
Some checks failed
CICD Start / Sanity and Base Decision (pull_request) Successful in 20s
CICD Start / Sanity and Base Decision (push) Failing after 11m32s

This commit is contained in:
copilotcoder
2026-07-05 09:53:34 -04:00
parent 38741c580c
commit ad919e6c11

View File

@@ -322,7 +322,11 @@ jobs:
export NODE_OPTIONS="--max-old-space-size=512"
export YARN_NETWORK_CONCURRENCY=1
cd frontend
yarn install --immutable --mode=skip-build
if ! yarn install --immutable --mode=skip-build; then
echo "Yarn install failed; retrying with npm fallback for constrained runner memory"
rm -f package-lock.json
npm install --ignore-scripts --no-audit --no-fund --prefer-offline
fi
- name: Run frontend pre-commit source checks
env: