build: upstream

This commit is contained in:
Jozef Steinhübl 2024-06-03 22:33:22 +02:00
commit e29b8409e8
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F
2 changed files with 14 additions and 1 deletions

View file

@ -36,6 +36,16 @@ If you need to authenticate with a private registry, you can set the `BUN_AUTH_T
run: bun install --frozen-lockfile
```
### Override download url
If you need to override the download URL, you can use the `bun-download-url` input.
```yaml
- uses: oven-sh/setup-bun
with:
bun-download-url: "https://github.com/oven-sh/bun/releases/latest/download/bun-linux-x64.zip"
```
### Node.js not needed
In most cases, you shouldn't need to use the [setup-node](https://github.com/actions/setup-node) GitHub Action.
@ -46,9 +56,9 @@ In most cases, you shouldn't need to use the [setup-node](https://github.com/act
| ------------------ | ----------------------------------------------------- | ----------- | ------------------------------- |
| `bun-version` | The version of Bun to download and install. | `latest` | `canary`, `1.0.0`, `1.0.x` |
| `bun-version-file` | The version of Bun to download and install from file. | `undefined` | `.bumrc` |
| `bun-download-url` | URL to download .zip file for Bun release | | |
| `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

View file

@ -11,6 +11,9 @@ inputs:
bun-version-file:
description: 'The version of Bun to install from file. (e.g. "package.json", ".bumrc", ".tool-versions")'
required: false
bun-download-url:
description: "Override the URL to download Bun from. This skips version resolution and verifying AVX2 support."
required: false
registry-url:
required: false
description: "The URL of the package registry to use for installing Bun. Set the $BUN_AUTH_TOKEN environment variable to authenticate with the registry."