mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-17 20:18:24 +02:00
fix: allow setting token for default registry
This commit is contained in:
parent
6fb6603cc1
commit
748b1fd9f1
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ export function createBunfig(options: BunfigOptions): string | null {
|
|||
}
|
||||
|
||||
if (url && !owner) {
|
||||
return `[install]${EOL}registry = "${url}"${EOL}`;
|
||||
return `[install]${EOL}registry = { token = "$BUN_AUTH_TOKEN", url = "${url}"}${EOL}`;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue