mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-19 04:58:25 +02:00
docs: show table
This commit is contained in:
parent
6aaca7beee
commit
b8be0fe8ec
1 changed files with 7 additions and 5 deletions
12
README.md
12
README.md
|
@ -41,11 +41,13 @@ You can configure multiple package registries using the `registries` input. This
|
|||
|
||||
#### Registry format options
|
||||
|
||||
- **Default registry**: `https://registry.npmjs.org/`
|
||||
- **Default registry with token**: `https://registry.npmjs.org/|$TOKEN`
|
||||
- **Scoped registry**: `@scope:https://registry.example.com/`
|
||||
- **Scoped registry with token**: `@scope:https://registry.example.com/|$TOKEN`
|
||||
- **Scoped registry with URL credentials**: `@scope:https://username:$PASSWORD@registry.example.com/`
|
||||
| Type | Format | Example |
|
||||
| ------------------------------------ | --------------------------------------------------------- | ----------------------------------------------------- |
|
||||
| Default registry | `https://registry.example.com/` | `https://registry.npmjs.org/` |
|
||||
| Default registry with token | `https://registry.example.com/\|$TOKEN` | `https://registry.npmjs.org/\|$NPM_TOKEN` |
|
||||
| Scoped registry | `@scope:https://registry.example.com/` | `@myorg:https://npm.pkg.github.com/` |
|
||||
| Scoped registry with token | `@scope:https://registry.example.com/\|$TOKEN` | `@myorg:https://npm.pkg.github.com/\|$GITHUB_TOKEN` |
|
||||
| Scoped registry with URL credentials | `@scope:https://username:$PASSWORD@registry.example.com/` | `@internal:https://user:$PASS@registry.internal.com/` |
|
||||
|
||||
> [!IMPORTANT]
|
||||
> When using authentication, make sure to set the corresponding environment variables in your workflow steps that need access to the registries.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue