mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-19 21:18:22 +02:00
ci: jsr registry test
This commit is contained in:
parent
95fe79d023
commit
e8a5565c78
3 changed files with 42 additions and 7 deletions
|
@ -5,7 +5,7 @@ import { info } from "@actions/core";
|
|||
export type Registry = {
|
||||
url: string;
|
||||
scope: string;
|
||||
token: string;
|
||||
token?: string;
|
||||
};
|
||||
|
||||
enum FieldType {
|
||||
|
@ -40,7 +40,9 @@ export function createField(registry: Registry): Field {
|
|||
if (url && owner) {
|
||||
return {
|
||||
type: FieldType.INSTALL_WITH_SCOPE,
|
||||
value: `'${owner}' = { token = "${token}", url = "${url}" }`,
|
||||
value: `'${owner}' = { url = "${url}"${
|
||||
token ? `, token = "${token}"` : ""
|
||||
} }`,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue