mirror of
https://github.com/actions/setup-node
synced 2025-04-17 13:43:12 +00:00
fix auth GPR
This commit is contained in:
parent
bdb28101ec
commit
6839971c6d
@ -43,8 +43,9 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth) {
|
||||
});
|
||||
}
|
||||
// Remove http: or https: from front of registry.
|
||||
const authString = registryUrl.replace(/(^\w+:|^)/, '')
|
||||
+ ':_authToken=' + process.env['NODE_AUTH_TOKEN'];
|
||||
const authString = registryUrl.replace(/(^\w+:|^)/, '') +
|
||||
':_authToken=' +
|
||||
process.env['NODE_AUTH_TOKEN'];
|
||||
const registryString = scope
|
||||
? `${scope}:registry=${registryUrl}`
|
||||
: `registry=${registryUrl}`;
|
||||
|
Loading…
Reference in New Issue
Block a user