Skip to content

Commit 12892f0

Browse files
committed
ci: improve bun caching to invalidate when bun version changes in package.json
1 parent 9714a35 commit 12892f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/setup-bun/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ runs:
88
uses: actions/cache@v4
99
with:
1010
path: ~/.bun
11-
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lockb', 'bun.lock') }}
11+
key: ${{ runner.os }}-bun-${{ hashFiles('package.json') }}-${{ hashFiles('bun.lockb', 'bun.lock') }}
1212
restore-keys: |
13-
${{ runner.os }}-bun-
13+
${{ runner.os }}-bun-${{ hashFiles('package.json') }}-
1414
1515
- name: Setup Bun
1616
uses: oven-sh/setup-bun@v2

0 commit comments

Comments
 (0)