docs: show table

This commit is contained in:
Jozef Steinhübl 2025-07-08 22:48:13 +02:00
parent 6aaca7beee
commit b8be0fe8ec
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F

View file

@ -41,11 +41,13 @@ You can configure multiple package registries using the `registries` input. This
#### Registry format options #### Registry format options
- **Default registry**: `https://registry.npmjs.org/` | Type | Format | Example |
- **Default registry with token**: `https://registry.npmjs.org/|$TOKEN` | ------------------------------------ | --------------------------------------------------------- | ----------------------------------------------------- |
- **Scoped registry**: `@scope:https://registry.example.com/` | Default registry | `https://registry.example.com/` | `https://registry.npmjs.org/` |
- **Scoped registry with token**: `@scope:https://registry.example.com/|$TOKEN` | Default registry with token | `https://registry.example.com/\|$TOKEN` | `https://registry.npmjs.org/\|$NPM_TOKEN` |
- **Scoped registry with URL credentials**: `@scope:https://username:$PASSWORD@registry.example.com/` | 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] > [!IMPORTANT]
> When using authentication, make sure to set the corresponding environment variables in your workflow steps that need access to the registries. > When using authentication, make sure to set the corresponding environment variables in your workflow steps that need access to the registries.