diff --git a/lib/authutil.js b/lib/authutil.js index 162872eb..7feec084 100644 --- a/lib/authutil.js +++ b/lib/authutil.js @@ -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); } diff --git a/src/authutil.ts b/src/authutil.ts index 8c401498..5afa9915 100644 --- a/src/authutil.ts +++ b/src/authutil.ts @@ -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); }