Cache Key - CI/CD Glossary Definition
A cache key is the identifier passed to actions/cache (the key: input) that uniquely names a cache entry, usually built from a runtime version and a hash of a lockfile so a new entry is created when dependencies change.
Building a good key
A common pattern is key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}. An exact key hit restores and skips re-downloading; a miss with no restore fallback rebuilds from scratch and saves a new entry at the end of the job.
Related guides
Cache (CI) - CI/CD Glossary DefinitionCache (CI): A **cache** stores dependencies or build outputs between runs so they are restored instead of rec…
Artifact Retention - CI/CD Glossary DefinitionArtifact Retention: Artifact retention is the policy that controls how long build outputs, logs, and test rep…
Job Summary - CI/CD Glossary DefinitionJob Summary: A job summary is custom Markdown a step writes to the `$GITHUB_STEP_SUMMARY` file, rendered on t…