AphrodyBun GitHub

Runtime docs · Guides · Package Manager

Install dependencies with Bun in GitHub Actions

Use the setup-bun action of aphrody-labs/bun to install bun in your GitHub Actions runner. It installs a release of aphrody-labs/bun and checks it against the release's SHA256SUMS.txt.

workflow.yml
name: my-workflow
jobs:
  my-job:
    name: my-job
    runs-on: ubuntu-latest
    steps:
      # ...
      - uses: actions/checkout@v4
      - uses: aphrody-labs/bun/.github/actions/setup-bun@main # [!code ++]

      # run any `bun` or `bunx` command
      - run: bun install # [!code ++]

To specify a version of Bun to install:

workflow.yml
name: my-workflow
jobs:
  my-job:
    name: my-job
    runs-on: ubuntu-latest
    steps:
      # ...
      - uses: aphrody-labs/bun/.github/actions/setup-bun@main
        with: # [!code ++]
          bun-version: "latest" # or "1.4.3", or a tag such as "aphrody-v1.4.3-aphrody.4" # [!code ++]

See the setup-bun action.