mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-22 12:43:15 +08:00
docs: show table
This commit is contained in:
parent
b8be0fe8ec
commit
90cf21e375
14
README.md
14
README.md
@ -41,13 +41,13 @@ You can configure multiple package registries using the `registries` input. This
|
||||
|
||||
#### Registry format options
|
||||
|
||||
| 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/` |
|
||||
| Type | Format |
|
||||
| ------------------------------------ | --------------------------------------------------------- |
|
||||
| Default registry | `https://registry.example.com/` |
|
||||
| Default registry with token | `https://registry.example.com/\|$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/` |
|
||||
|
||||
> [!IMPORTANT]
|
||||
> When using authentication, make sure to set the corresponding environment variables in your workflow steps that need access to the registries.
|
||||
|
Loading…
x
Reference in New Issue
Block a user