mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
0e1a48cd06
Co-authored-by: Greg Bergé <berge.greg@gmail.com>
19 lines
666 B
YAML
19 lines
666 B
YAML
name: 'Setup Bun'
|
|
description: 'Install Bun and cache dependencies'
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
# We cache dependencies even if Bun is fast to avoid downloading fontawesome too many times
|
|
# and impacting bandwidth there.
|
|
- name: Cache bun
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.bun/install/cache
|
|
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}-${{ hashFiles('**/bun.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-bun-
|
|
- name: Setup bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version-file: '.bun-version'
|