feat: ensure unique cache key for every workflow run

Add github.run_id to cache key to prevent cache hits and ensure
every run saves a new cache entry.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
snomiao
2025-10-16 03:45:20 +00:00
parent 165b322a55
commit d56e0cb7a7

View File

@@ -43,7 +43,7 @@ jobs:
.pages
storybook-static
coverage
key: build-cache-${{ github.ref_name }}-${{ hashFiles('pnpm-lock.yaml', 'package.json') }}
key: build-cache-${{ github.ref_name }}-${{ github.run_id }}-${{ hashFiles('pnpm-lock.yaml', 'package.json') }}
restore-keys: |
build-cache-${{ github.ref_name }}-
build-cache-main-