Set up your GitHub Actions workflow with a specific version of Bun
Find a file
2022-07-28 08:37:15 +02:00
.github/workflows chore: debug 2022-07-28 08:26:28 +02:00
dist chore: debug 2022-07-28 08:35:10 +02:00
node_modules feat: add @actions/cache 2022-07-12 09:00:22 +02:00
src fix: im idiot.... 2022-07-28 08:37:15 +02:00
action.yml feat: custom download url, custom repository 2022-07-28 07:50:56 +02:00
bun.lockb chore: debug 2022-07-12 09:31:35 +02:00
LICENSE chore: update package.json, license 2022-07-12 11:03:29 +02:00
package.json chore: bump version 2022-07-27 08:18:27 +02:00
README.md chore: debug 2022-07-28 08:26:28 +02:00
tsconfig.json fix: use ES2018 2022-07-11 09:57:02 +02:00

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.GITHUB_TOKEN }}