Every run tries to cache node_modules but fails due to >2 GB size. Debugging: Debug log explicitly says cache size (2.8 GB) exceeds limit . Fix: Cache only production dependencies ( npm ci --production ) or split across multiple cache actions.
: Look for leaked PATH variables or system-specific absolute paths that vary between developer machines or CI runners. debug-action-cache
Cache saves happen in the post phase of the action. Most developers miss these logs. To capture them: Every run tries to cache node_modules but fails