Skip to content

Commit c09ef15

Browse files
author
Danny McCormick
committed
Dont always auth
1 parent 985b557 commit c09ef15

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/authutil.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function writeRegistryToFile(registryUrl, fileLocation) {
4141
const registryString = scope
4242
? `${scope}:registry=${registryUrl}`
4343
: `registry=${registryUrl}`;
44-
newContents += `${registryString}${os.EOL}always-auth=true${os.EOL}${authString}`;
44+
newContents += `${registryString}${os.EOL}${authString}`;
4545
fs.writeFileSync(fileLocation, newContents);
4646
core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
4747
}

src/authutil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function writeRegistryToFile(registryUrl: string, fileLocation: string) {
3939
const registryString = scope
4040
? `${scope}:registry=${registryUrl}`
4141
: `registry=${registryUrl}`;
42-
newContents += `${registryString}${os.EOL}always-auth=true${os.EOL}${authString}`;
42+
newContents += `${registryString}${os.EOL}${authString}`;
4343
fs.writeFileSync(fileLocation, newContents);
4444
core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
4545
}

0 commit comments

Comments
 (0)