🔥 3-day streak
GitHub Actions (GH-200)133 / 142
Question 133 of 142

A CI workflow builds a large Node.js dependency tree that takes several minutes to install. The team adds actions/cache to speed up runs. They want to run 'npm ci' only when the cache was NOT restored (a cache miss), and skip it entirely on a full cache hit to save time. Which approach correctly implements this cost optimization?

Reviewed for accuracy · Report an issueNext question