mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 04:28:28 +02:00
build: upstream
This commit is contained in:
commit
e29b8409e8
2 changed files with 14 additions and 1 deletions
12
README.md
12
README.md
|
@ -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
|
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
|
### Node.js not needed
|
||||||
|
|
||||||
In most cases, you shouldn't need to use the [setup-node](https://github.com/actions/setup-node) GitHub Action.
|
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` | 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-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/"` |
|
| `registry-url` | Registry URL where some private package is stored. | `undefined` | `"https://npm.pkg.github.com/"` |
|
||||||
| `scope` | Scope for private packages. | `undefined` | `"@foo"`, `"@orgname"` |
|
| `scope` | Scope for private packages. | `undefined` | `"@foo"`, `"@orgname"` |
|
||||||
| `no-cache` | Disable caching of the downloaded executable. | `false` | `true`, `false` |
|
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,9 @@ inputs:
|
||||||
bun-version-file:
|
bun-version-file:
|
||||||
description: 'The version of Bun to install from file. (e.g. "package.json", ".bumrc", ".tool-versions")'
|
description: 'The version of Bun to install from file. (e.g. "package.json", ".bumrc", ".tool-versions")'
|
||||||
required: false
|
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:
|
registry-url:
|
||||||
required: false
|
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."
|
description: "The URL of the package registry to use for installing Bun. Set the $BUN_AUTH_TOKEN environment variable to authenticate with the registry."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue