2022-07-11 10:18:22 +02:00
|
|
|
# setup-bun
|
|
|
|
> Huge inspiration [setup-deno](https://github.com/denoland/setup-deno)
|
|
|
|
|
|
|
|
Set up your GitHub Actions workflow with a specific version of Bun.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
### Latest stable
|
|
|
|
|
|
|
|
```yaml
|
2022-10-29 10:03:51 +02:00
|
|
|
- uses: xhyrom/setup-bun@v0.1.8
|
2022-07-11 10:18:22 +02:00
|
|
|
with:
|
|
|
|
bun-version: latest
|
2022-07-26 07:29:31 +02:00
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
2022-07-11 10:18:22 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
### Specific version
|
|
|
|
|
|
|
|
```yaml
|
2022-10-29 10:03:51 +02:00
|
|
|
- uses: xhyrom/setup-bun@v0.1.8
|
2022-07-11 10:18:22 +02:00
|
|
|
with:
|
2022-07-27 08:18:45 +02:00
|
|
|
bun-version: "0.1.5"
|
2022-07-26 07:29:31 +02:00
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
2022-07-11 17:00:34 +02:00
|
|
|
```
|
2022-07-13 09:42:54 +02:00
|
|
|
|
2022-07-25 22:31:43 +02:00
|
|
|
### Canary builds
|
2022-07-13 09:42:54 +02:00
|
|
|
|
|
|
|
```yaml
|
2022-10-29 10:03:51 +02:00
|
|
|
- uses: xhyrom/setup-bun@v0.1.8
|
2022-07-13 09:42:54 +02:00
|
|
|
with:
|
2022-07-25 22:31:43 +02:00
|
|
|
bun-version: canary
|
2022-07-26 07:29:31 +02:00
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
2022-07-13 09:42:54 +02:00
|
|
|
```
|
2022-07-28 07:50:56 +02:00
|
|
|
|
|
|
|
### Custom repository
|
|
|
|
|
|
|
|
```yaml
|
2022-10-29 10:03:51 +02:00
|
|
|
- uses: xhyrom/setup-bun@v0.1.8
|
2022-07-28 07:50:56 +02:00
|
|
|
with:
|
|
|
|
repository: https://github.com/oven-sh/misc-test-builds
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Custom download url
|
|
|
|
|
|
|
|
```yaml
|
2022-10-29 10:03:51 +02:00
|
|
|
- uses: xhyrom/setup-bun@v0.1.8
|
2022-07-28 07:50:56 +02:00
|
|
|
with:
|
2022-07-28 08:06:06 +02:00
|
|
|
custom-download-url: https://api.github.com/repos/oven-sh/bun/actions/artifacts/311939881/zip # must be github api
|
2022-07-28 08:26:28 +02:00
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
2022-07-28 07:50:56 +02:00
|
|
|
```
|