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

Dont always auth

This commit is contained in:
Danny McCormick 2019-08-06 09:40:13 -04:00
parent 985b557393
commit c09ef151f8
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -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);
}