mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
fix auth GPR
This commit is contained in:
parent
bdb28101ec
commit
6839971c6d
1 changed files with 3 additions and 2 deletions
|
@ -43,8 +43,9 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Remove http: or https: from front of registry.
|
// Remove http: or https: from front of registry.
|
||||||
const authString = registryUrl.replace(/(^\w+:|^)/, '')
|
const authString = registryUrl.replace(/(^\w+:|^)/, '') +
|
||||||
+ ':_authToken=' + process.env['NODE_AUTH_TOKEN'];
|
':_authToken=' +
|
||||||
|
process.env['NODE_AUTH_TOKEN'];
|
||||||
const registryString = scope
|
const registryString = scope
|
||||||
? `${scope}:registry=${registryUrl}`
|
? `${scope}:registry=${registryUrl}`
|
||||||
: `registry=${registryUrl}`;
|
: `registry=${registryUrl}`;
|
||||||
|
|
Loading…
Add table
Reference in a new issue