Files
opencode/.github/actions/setup-bun/action.yml
2026-02-12 19:16:22 +08:00

21 lines
520 B
YAML

name: "Setup Bun"
description: "Setup Bun with caching and install dependencies"
runs:
using: "composite"
steps:
- name: Mount Bun Cache
uses: useblacksmith/stickydisk@v1
if: ${{ contains(runner.labels, 'blacksmith') }}
with:
key: ${{ github.repository }}-bun-cache-${{ runner.os }}
path: ~/.bun
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version-file: package.json
- name: Install dependencies
run: bun install
shell: bash