mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
a72052c457
upload-artifact's path filters are post-walk: even with !**/node_modules/** exclusions, the action still descends into every node_modules and stats every file (~6.4M for this monorepo with pnpm's .pnpm/ symlink farm) before applying negations. That enumeration is the actual bottleneck — the Upload workspace step runs 10+ minutes with the filters alone. Replace the filtered upload with: rm -rf the heavy dirs (node_modules, .nx, .turbo, .next), tar the workspace into a single file, upload that. The publish job tar -xzf's it before configuring git credentials and continues unchanged. Single-file upload skips upload-artifact's per-file overhead entirely. Re-applies the work from worktree-prerelease-tar-pack against the single-workflow layout introduced by #5071.