mirror of
https://github.com/actions/setup-node
synced 2024-12-23 05:34:56 +00:00
Fix string interpolation for auth token.
This commit is contained in:
parent
da3e59948e
commit
f20c85e5e5
1 changed files with 1 additions and 1 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