setup-bun/README.md
2022-07-28 09:26:39 +02:00

1017 B

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.7
  with:
    bun-version: latest
    github-token: ${{ secrets.GITHUB_TOKEN }}

Specific version

- uses: xhyrom/setup-bun@v0.1.7
  with:
    bun-version: "0.1.5"
    github-token: ${{ secrets.GITHUB_TOKEN }}

Canary builds

- uses: xhyrom/setup-bun@v0.1.7
  with:
    bun-version: canary
    github-token: ${{ secrets.GITHUB_TOKEN }}

Custom repository

- uses: xhyrom/setup-bun@v0.1.7
  with:
    repository: https://github.com/oven-sh/misc-test-builds
    github-token: ${{ secrets.GITHUB_TOKEN }}

Custom download url

- uses: xhyrom/setup-bun@v0.1.7
  with:
    custom-download-url: https://api.github.com/repos/oven-sh/bun/actions/artifacts/311939881/zip # must be github api
    github-token: ${{ secrets.GITHUB_TOKEN }}