Skip to content

ci: cache node_modules to skip redundant bun install#600

Merged
FL4TLiN3 merged 3 commits intomainfrom
ci/cache-node-modules
Feb 23, 2026
Merged

ci: cache node_modules to skip redundant bun install#600
FL4TLiN3 merged 3 commits intomainfrom
ci/cache-node-modules

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • Add actions/cache@v5 for node_modules in all 9 CI jobs, keyed by bun.lock hash
  • Skip bun install --frozen-lockfile entirely on cache hit
  • changeset-check job preserves its existing conditional gating (needs_changeset)

Expected impact

  • Cache hit: bun install fully skipped across all jobs (saves ~tens of seconds per job)
  • Cache miss: Same behavior as before (first job saves the cache for subsequent runs)
  • No structural changes: Job parallelism and independence are preserved

Test plan

  • CI passes on this PR (first run will be a cache miss, behaving identically to current)
  • Subsequent CI runs on the same bun.lock should show cache hits and skip install

🤖 Generated with Claude Code

FL4TLiN3 and others added 2 commits February 23, 2026 07:33
Add actions/cache@v5 for node_modules in all 9 CI jobs, keyed by
bun.lock hash. When the cache hits, bun install is skipped entirely,
saving network download and link time on every run.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 enabled auto-merge (squash) February 23, 2026 07:55
Root-only node_modules cache missed per-package node_modules created by
bun workspaces, causing "Cannot find module" errors. Expand the cache
path to include packages/*/node_modules, packages/providers/*/node_modules,
and apps/*/node_modules.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 merged commit d9f6ab8 into main Feb 23, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the ci/cache-node-modules branch February 25, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant