mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-23 02:30:26 +08:00
docs: show correct bun-version-file examples (#86)
* docs: .bun-version * docs: correct bun-version-file examples
This commit is contained in:
parent
123c6c4e2f
commit
3fcae870de
16
README.md
16
README.md
@ -15,7 +15,7 @@ Download, install, and setup [Bun](https://bun.sh) in GitHub Actions.
|
|||||||
```yaml
|
```yaml
|
||||||
- uses: oven-sh/setup-bun@v2
|
- uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
bun-version-file: ".bumrc"
|
bun-version-file: ".bun-version"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Using a custom NPM registry
|
### Using a custom NPM registry
|
||||||
@ -52,13 +52,13 @@ In most cases, you shouldn't need to use the [setup-node](https://github.com/act
|
|||||||
|
|
||||||
## Inputs
|
## Inputs
|
||||||
|
|
||||||
| Name | Description | Default | Examples |
|
| Name | Description | Default | Examples |
|
||||||
| ------------------ | ----------------------------------------------------- | ----------- | ------------------------------- |
|
| ------------------ | ----------------------------------------------------- | ----------- | ------------------------------------------------ |
|
||||||
| `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` | `package.json`, `.bun-version`, `.tool-versions` |
|
||||||
| `bun-download-url` | URL to download .zip file for Bun release | | |
|
| `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"` |
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ inputs:
|
|||||||
description: 'The version of Bun to install. (e.g. "latest", "canary", "1.0.0", "1.0.x", <sha>)'
|
description: 'The version of Bun to install. (e.g. "latest", "canary", "1.0.0", "1.0.x", <sha>)'
|
||||||
required: false
|
required: false
|
||||||
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", ".bun-version", ".tool-versions")'
|
||||||
default: ".bun-version"
|
default: ".bun-version"
|
||||||
required: false
|
required: false
|
||||||
bun-download-url:
|
bun-download-url:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user