File tree Expand file tree Collapse file tree
.github/actions/setup-bun Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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'
38runs :
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
You can’t perform that action at this time.
0 commit comments