mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-23 02:30:26 +08:00
1.1 KiB
1.1 KiB
setup-bun
Huge inspiration setup-deno
Set up your GitHub Actions workflow with a specific version of Bun.
Usage
Latest stable
- uses: xhyrom/setup-bun@v0.1.6
with:
bun-version: latest
github-token: ${{ secrets.GITHUB_TOKEN }}
Specific version
- uses: xhyrom/setup-bun@v0.1.6
with:
bun-version: "0.1.5"
github-token: ${{ secrets.GITHUB_TOKEN }}
Canary builds
- uses: xhyrom/setup-bun@v0.1.6
with:
bun-version: canary
github-token: ${{ secrets.GITHUB_TOKEN }}
Custom repository
- uses: xhyrom/setup-bun@v0.1.6
with:
repository: https://github.com/oven-sh/misc-test-builds
github-token: ${{ secrets.GITHUB_TOKEN }}
Custom download url
- uses: xhyrom/setup-bun@v0.1.6
with:
custom-download-url: https://api.github.com/repos/oven-sh/bun/actions/artifacts/311939881/zip # must be github api
github-token: ${{ secrets.ACCESS_TOKEN }} # must have the actions scope to download artifacts (https://github.com/actions/upload-artifact/issues/51#issuecomment-622955923)