mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-17 20:18:24 +02:00
Set up your GitHub Actions workflow with a specific version of Bun
![]() update to use nodejs as per planned deprecation of node16 https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/ |
||
---|---|---|
.github/workflows | ||
dist | ||
src | ||
.gitattributes | ||
.gitignore | ||
action.yml | ||
bun.lockb | ||
LICENSE | ||
package.json | ||
README.md | ||
tsconfig.json |
setup-bun
Download, install, and setup Bun in GitHub Actions.
Usage
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
Inputs
Name | Description | Default | Examples |
---|---|---|---|
bun-version |
The version of Bun to download and install. | latest |
canary , 1.0.0 , <sha> |
Outputs
Name | Description | Example |
---|---|---|
cache-hit |
If the Bun executable was read from cache. | true |
bun-version |
The output from bun --version . |
1.0.0 |
bun-revision |
The output from bun --revision . |
1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983 |