setup-bun/README.md

54 lines
751 B
Markdown
Raw Normal View History

2022-07-11 10:18:22 +02:00
# setup-bun
2023-02-22 17:47:24 -08:00
Download, install, and setup [Bun](https://bun.sh) in GitHub Actions.
2022-07-11 10:18:22 +02:00
## Usage
2023-03-01 16:01:35 -08:00
### Latest release
2022-07-11 10:18:22 +02:00
```yaml
2023-02-22 17:47:24 -08:00
- uses: oven-sh/setup-bun@v1
2022-07-11 10:18:22 +02:00
with:
bun-version: latest
```
2023-02-22 17:47:24 -08:00
### Specific release
2022-07-11 10:18:22 +02:00
```yaml
2023-02-22 17:47:24 -08:00
- uses: oven-sh/setup-bun@v1
2022-07-11 10:18:22 +02:00
with:
2023-02-22 17:47:24 -08:00
bun-version: "0.5.6"
2022-07-11 17:00:34 +02:00
```
2022-07-13 09:42:54 +02:00
2023-02-22 17:47:24 -08:00
### Canary release
2022-07-13 09:42:54 +02:00
```yaml
2023-02-22 17:47:24 -08:00
- uses: oven-sh/setup-bun@v1
2022-07-13 09:42:54 +02:00
with:
2022-07-25 22:31:43 +02:00
bun-version: canary
2022-07-13 09:42:54 +02:00
```
2023-02-22 17:47:24 -08:00
### Specific canary release
```yaml
2023-02-22 17:47:24 -08:00
- uses: oven-sh/setup-bun@v1
with:
2023-02-22 17:47:24 -08:00
bun-version: 9be68ac2350b965037f408ce4d47c3b9d9a76b63
```
2023-03-01 16:01:35 -08:00
### Action run
```yaml
- uses: oven-sh/setup-bun@v1
with:
bun-version: "action:4308768069"
```
### Custom download URL
```yaml
2023-02-22 17:47:24 -08:00
- uses: oven-sh/setup-bun@v1
with:
2023-02-22 17:47:24 -08:00
bun-download-url: https://example.com/path/to/bun.zip
2023-01-12 09:00:20 +01:00
```