https://github.com/IITC-College/cicd-lab05-using-cache
.github/workflows/ci.yml
push on all branchespull_requestid named node-modules-cachepath: node_moduleskey: using:
runner.oshashFiles('**/package-lock.json')restore-keys: using a prefix matchnpm ci
if: condition to the installation step:
steps.node-modules-cache.outputs.cache-hit
- Understand the condition:
- If Cache Hit = `true`
- Skip `npm ci`
- If Cache Miss = run `npm ci`
Cache not found for key...