3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-24 11:09:33 +01:00

Add single quotes for authString

This commit is contained in:
Iheanyi Ekechukwu 2019-08-06 12:07:22 -04:00
parent e7609c8e84
commit c970c05a19

View file

@ -36,7 +36,7 @@ function writeRegistryToFile(registryUrl: string, fileLocation: string) {
} }
// Remove http: or https: from front of registry. // Remove http: or https: from front of registry.
const authString = const authString =
registryUrl.replace(/(^\w+:|^)/, '') + `:_authToken=${NODE_AUTH_TOKEN}`; registryUrl.replace(/(^\w+:|^)/, '') + ':_authToken=${NODE_AUTH_TOKEN}';
const registryString = scope const registryString = scope
? `${scope}:registry=${registryUrl}` ? `${scope}:registry=${registryUrl}`
: `registry=${registryUrl}`; : `registry=${registryUrl}`;