ci: switch to standard GitHub cache action for Bun dependencies
This commit is contained in:
11
.github/actions/setup-bun/action.yml
vendored
11
.github/actions/setup-bun/action.yml
vendored
@@ -3,12 +3,13 @@ description: "Setup Bun with caching and install dependencies"
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Mount Bun Cache
|
- name: Cache Bun dependencies
|
||||||
if: ${{ runner.os == 'Linux' }}
|
uses: actions/cache@v4
|
||||||
uses: useblacksmith/stickydisk@v1
|
|
||||||
with:
|
with:
|
||||||
key: ${{ github.repository }}-bun-cache-${{ runner.os }}
|
path: ~/.bun/install/cache
|
||||||
path: ~/.bun
|
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-bun-
|
||||||
|
|
||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|||||||
Reference in New Issue
Block a user