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

A Node.js project uses actions/cache to speed up dependency installs. The team wants the cache to be keyed on the exact hash of package-lock.json, but if no exact match exists (for example after a dependency bump), they want the runner to restore the most recent previous cache for the same OS rather than starting from an empty cache. Which configuration achieves this?

Reviewed for accuracy · Report an issueNext question