mirror of
https://github.com/actions/setup-node
synced 2024-12-23 05:34:56 +00:00
Dont always auth
This commit is contained in:
parent
985b557393
commit
c09ef151f8
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ function writeRegistryToFile(registryUrl, fileLocation) {
|
|||
const registryString = scope
|
||||
? `${scope}:registry=${registryUrl}`
|
||||
: `registry=${registryUrl}`;
|
||||
newContents += `${registryString}${os.EOL}always-auth=true${os.EOL}${authString}`;
|
||||
newContents += `${registryString}${os.EOL}${authString}`;
|
||||
fs.writeFileSync(fileLocation, newContents);
|
||||
core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ function writeRegistryToFile(registryUrl: string, fileLocation: string) {
|
|||
const registryString = scope
|
||||
? `${scope}:registry=${registryUrl}`
|
||||
: `registry=${registryUrl}`;
|
||||
newContents += `${registryString}${os.EOL}always-auth=true${os.EOL}${authString}`;
|
||||
newContents += `${registryString}${os.EOL}${authString}`;
|
||||
fs.writeFileSync(fileLocation, newContents);
|
||||
core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue