ci: improve bun caching to invalidate when bun version changes in package.json

This commit is contained in:
Dax Raad
2025-11-11 01:31:13 -05:00
parent 9714a3558e
commit 12892f0e12

View File

@@ -8,9 +8,9 @@ runs:
uses: actions/cache@v4
with:
path: ~/.bun
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lockb', 'bun.lock') }}
key: ${{ runner.os }}-bun-${{ hashFiles('package.json') }}-${{ hashFiles('bun.lockb', 'bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
${{ runner.os }}-bun-${{ hashFiles('package.json') }}-
- name: Setup Bun
uses: oven-sh/setup-bun@v2