mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2024-11-24 05:51:02 -05:00
Add single quotes for authString
This commit is contained in:
parent
e7609c8e84
commit
c970c05a19
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ function writeRegistryToFile(registryUrl: string, fileLocation: string) {
|
|||
}
|
||||
// Remove http: or https: from front of registry.
|
||||
const authString =
|
||||
registryUrl.replace(/(^\w+:|^)/, '') + `:_authToken=${NODE_AUTH_TOKEN}`;
|
||||
registryUrl.replace(/(^\w+:|^)/, '') + ':_authToken=${NODE_AUTH_TOKEN}';
|
||||
const registryString = scope
|
||||
? `${scope}:registry=${registryUrl}`
|
||||
: `registry=${registryUrl}`;
|
||||
|
|
Loading…
Reference in a new issue