mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 11:14:23 +01:00
23 lines
604 B
YAML
23 lines
604 B
YAML
name: "Setup Bun"
|
|
description: "Setup Bun with caching and install dependencies"
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version-file: package.json
|
|
|
|
- name: Cache ~/.bun
|
|
id: cache-bun
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.bun
|
|
key: ${{ runner.os }}-bun-${{ hashFiles('package.json') }}-${{ hashFiles('bun.lockb', 'bun.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-bun-${{ hashFiles('package.json') }}-
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
shell: bash
|