Cache Key - CI/CD用語集の定義
cache key とは、actions/cache(key: input)に渡される識別子で、cache エントリを一意に命名し、通常は runtime のバージョンと lockfile のハッシュから構築されるため、依存関係が変わると新しいエントリが作成されます。
良い key の作り方
一般的なパターンは key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} です。key の完全一致は復元して再ダウンロードをスキップします。restore fallback のない miss はゼロから再 build し、job の終わりに新しいエントリを保存します。
関連ガイド
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…