fix: CI 改用 Node 20 + 增大内存 + no-fund/no-audit 诊断 npm 崩溃

This commit is contained in:
riba2534
2026-06-28 13:25:05 +08:00
parent a86196e2ea
commit 9566ffd438

View File

@@ -16,15 +16,19 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '22'
node-version: '20'
- name: Install dependencies
run: npm install
run: npm install --no-fund --no-audit
working-directory: site
env:
NODE_OPTIONS: '--max-old-space-size=4096'
- name: Build site
run: npm run build
working-directory: site
env:
NODE_OPTIONS: '--max-old-space-size=4096'
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3