mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
bbff324aaf
The release/publish workflow's build job uploads the entire workspace as an artifact for the publish job to download. With node_modules and build caches included, this monorepo produces ~6.4M files, which OOMs upload-artifact's Node process at its 4GB heap limit during enumeration: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory Excluding node_modules, .next, .turbo, and .nx cuts the file count by orders of magnitude. The publish job runs `pnpm install --frozen-lockfile` after download to restore node_modules deterministically from pnpm-lock.yaml (carried in the artifact), so the publish step still runs against exactly the resolved dependency tree the build job used. Fixes the upload step that hung for 12+ minutes and then OOM'd when the workflow_dispatch trigger added in #4808 was first exercised.