setup-bun

Set up your GitHub Actions workflow with a specific version of Bun

MIT License

Stars
424
Committers
20

Bot releases are visible (Hide)

setup-bun - v2.0.1 Latest Release

Published by xHyroM 3 months ago

oven-sh/setup-bun is the github action for setting up Bun.

This releases fixes false warning when you don't have any parameters in action (https://github.com/oven-sh/setup-bun/pull/90) thanks to @Araxeus

What's Changed

New Contributors

Full Changelog: https://github.com/oven-sh/setup-bun/compare/v1...v2

setup-bun - v2

Published by xHyroM 4 months ago

oven-sh/setup-bun is the github action for setting up Bun.

This release introduces support for the bun-version-file option, fixes https://github.com/oven-sh/setup-bun/issues/79, and adds bun paths & urls to the output (https://github.com/oven-sh/setup-bun/issues/81)

For more information, see https://github.com/oven-sh/setup-bun/pull/76 by @adeherysh and https://github.com/oven-sh/setup-bun/pull/80 by @xHyroM 🎉

Full Changelog: https://github.com/oven-sh/setup-bun/compare/v1...v2

setup-bun - v1.2.2

Published by Jarred-Sumner 5 months ago

oven-sh/setup-bun is the github action for setting up Bun.

This release introduces support for the bun-download-url input, which lets you override the URL used to download the .zip file for Bun.

Here's an example:

- name: Setup Bun
  uses: oven-sh/[email protected]
  with:
    bun-version: latest
    bun-download-url: "https://github.com/oven-sh/bun/releases/latest/download/bun-${{runner.os == 'macOS' && 'darwin' || runner.os}}-${{ runner.arch == 'X64' && 'x64' || 'arm64' }}.zip"
setup-bun - v1.2.1

Published by xHyroM 7 months ago

setup-bun v1.2.1

Download, install, and setup Bun in GitHub Actions.

Usage

- uses: oven-sh/setup-bun@v1
  with:
    bun-version: latest

Using a custom NPM registry

- uses: oven-sh/setup-bun@v1
  with:
    registry-url: "https://npm.pkg.github.com/"
    scope: "@foo"

If you need to authenticate with a private registry, you can set the BUN_AUTH_TOKEN environment variable.

- name: Install Dependencies
  env:
    BUN_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
  run: bun install --frozen-lockfile

Node.js not needed

In most cases, you shouldn't need to use the setup-node GitHub Action.

Inputs

Name Description Default Examples
bun-version The version of Bun to download and install. latest canary, 1.0.0, 1.0.x
registry-url Registry URL where some private package is stored. undefined "https://npm.pkg.github.com/"
scope Scope for private packages. undefined "@foo", "@orgname"
no-cache Disable caching of the downloaded executable. false true, false

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+822a00c4

What's Changed

Full Changelog: https://github.com/oven-sh/setup-bun/compare/v1.2.0...v1.2.1

setup-bun - v1.2.0

Published by xHyroM 8 months ago

setup-bun v1.2.0

Download, install, and setup Bun in GitHub Actions.

Usage

- uses: oven-sh/setup-bun@v1
  with:
    bun-version: latest

Using a custom NPM registry

- uses: oven-sh/setup-bun@v1
  with:
    registry-url: "https://npm.pkg.github.com/"
    scope: "@foo"

If you need to authenticate with a private registry, you can set the BUN_AUTH_TOKEN environment variable.

- name: Install Dependencies
  env:
    BUN_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
  run: bun install --frozen-lockfile

Node.js not needed

In most cases, you shouldn't need to use the setup-node GitHub Action.

Inputs

Name Description Default Examples
bun-version The version of Bun to download and install. latest canary, 1.0.0, 1.0.x
registry-url Registry URL where some private package is stored. undefined "https://npm.pkg.github.com/"
scope Scope for private packages. undefined "@foo", "@orgname"
no-cache Disable caching of the downloaded executable. false true, false

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+822a00c4

What's Changed

New Contributors

Full Changelog: https://github.com/oven-sh/setup-bun/compare/v1...v1.2.0

setup-bun - v1.1.1

Published by xHyroM 11 months ago

setup-bun v1.1.0

Download, install, and setup Bun in GitHub Actions.

Usage

- uses: oven-sh/setup-bun@v1
  with:
    bun-version: latest

Using a custom NPM registry

- uses: oven-sh/setup-bun@v1
  with:
    registry-url: "https://npm.pkg.github.com/"
    scope: "@foo"

If you need to authenticate with a private registry, you can set the BUN_AUTH_TOKEN environment variable.

- name: Install Dependencies
  env:
    BUN_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
  run: bun install

Inputs

Name Description Default Examples
bun-version The version of Bun to download and install. latest canary, 1.0.0, 1.0.x
registry-url Registry URL where some private package is stored. undefined "https://npm.pkg.github.com/"
scope Scope for private pacakages. undefined "@foo", "@orgname"

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+822a00c4

What's Changed

Full Changelog: https://github.com/oven-sh/setup-bun/compare/v1.1.0...v1.1.1

setup-bun - v1.1.0

Published by xHyroM 11 months ago

setup-bun v1.1.0

Download, install, and setup Bun in GitHub Actions.

Usage

- uses: oven-sh/setup-bun@v1
  with:
    bun-version: latest

Using a custom NPM registry

- uses: oven-sh/setup-bun@v1
  with:
    registry-url: "https://npm.pkg.github.com/"
    scope: "@foo"

If you need to authenticate with a private registry, you can set the BUN_AUTH_TOKEN environment variable.

- name: Install Dependencies
  env:
    BUN_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
  run: bun install

Inputs

Name Description Default Examples
bun-version The version of Bun to download and install. latest canary, 1.0.0, 1.0.x
registry-url Registry URL where some private package is stored. undefined "https://npm.pkg.github.com/"
scope Scope for private pacakages. undefined "@foo", "@orgname"

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+822a00c4
setup-bun - v1

Published by Electroid over 1 year ago

setup-bun v1

Download, install, and setup Bun in GitHub Actions.

Usage

Latest release

- uses: oven-sh/setup-bun@v1
  with:
    bun-version: latest

Specific release

- uses: oven-sh/setup-bun@v1
  with:
    bun-version: "0.5.6"

Canary release

- uses: oven-sh/setup-bun@v1
  with:
    bun-version: canary

Specific canary release

- uses: oven-sh/setup-bun@v1
  with:
    bun-version: 9be68ac2350b965037f408ce4d47c3b9d9a76b63

Action run

- uses: oven-sh/setup-bun@v1
  with:
    bun-version: "action:4308768069"

Custom download URL

- uses: oven-sh/setup-bun@v1
  with:
    bun-download-url: https://example.com/path/to/bun.zip
setup-bun - v0.1.8

Published by xHyroM almost 2 years ago

Update dependencies, node

Full Changelog: https://github.com/xHyroM/setup-bun/compare/v0.1.7...v0.1.8

setup-bun - v0.1.7

Published by xHyroM about 2 years ago

Full Changelog: https://github.com/xHyroM/setup-bun/compare/v0.1.6...v0.1.7

Support for repository & custom-download-url inputs
Check README and workflow

setup-bun - v0.1.6

Published by xHyroM about 2 years ago

Full Changelog: https://github.com/xHyroM/setup-bun/compare/v0.1.5...v0.1.6
Set ${{ github.token }} as default for github-token

setup-bun - v0.1.5

Published by xHyroM about 2 years ago

Full Changelog: https://github.com/xHyroM/setup-bun/compare/v0.1.4...v0.1.5

Support for canary builds

setup-bun - v0.1.4

Published by xHyroM over 2 years ago

setup-bun - v0.1.3

Published by xHyroM over 2 years ago

Ability to setup new misc test builds
Full Changelog: https://github.com/xHyroM/setup-bun/compare/v0.1.2...v0.1.3

setup-bun - v0.1.2

Published by xHyroM over 2 years ago

setup-bun - v0.1.1

Published by xHyroM over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/xHyroM/setup-bun/compare/v0.1.0...v0.1.1

setup-bun - v0.1.0

Published by xHyroM over 2 years ago