Skip to content

Commit 5aa0175

Browse files
committed
ci(setup-bun): pin default Bun to 1.3.0 to satisfy strict build script; allow override via input
1 parent d76454f commit 5aa0175

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
name: "Setup Bun"
2-
description: "Setup Bun with caching and install dependencies"
1+
name: setup-bun
2+
description: Setup Bun with optional version pinning and basic cache
3+
inputs:
4+
bun-version:
5+
description: Version of Bun to install (e.g., 1.3.0)
6+
required: false
7+
default: '1.3.0'
38
runs:
4-
using: "composite"
9+
using: composite
510
steps:
611
- name: Setup Bun
712
uses: oven-sh/setup-bun@v2
13+
with:
14+
bun-version: ${{ inputs.bun-version }}
815

9-
- name: Cache ~/.bun
10-
id: cache-bun
16+
- name: Cache Bun install dir
1117
uses: actions/cache@v4
1218
with:
1319
path: ~/.bun
14-
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lockb', 'bun.lock') }}
20+
key: ${{ runner.os }}-bun-${{ inputs.bun-version }}
1521
restore-keys: |
1622
${{ runner.os }}-bun-
17-
18-
- name: Install dependencies
19-
run: bun install
20-
shell: bash

0 commit comments

Comments
 (0)