diff --git a/dist/index.js b/dist/index.js index a28ba0b7..518f8a35 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4773,7 +4773,7 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth) { const alwaysAuthString = `always-auth=${alwaysAuth}`; if (scope && includeBothRegistries === "true") { const registryStringNoScope = `registry=${registryUrl}`; - newContents += `${registryStringNoScope}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}${os.EOL}${authContents}`; + newContents += `${registryStringNoScope}${os.EOL}${registryString}${os.EOL}${authContents}`; } else { newContents += `${authString}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}`; diff --git a/src/authutil.ts b/src/authutil.ts index fac4a3fb..41ffb65e 100644 --- a/src/authutil.ts +++ b/src/authutil.ts @@ -97,7 +97,7 @@ async function writeRegistryToFile( const alwaysAuthString: string = `always-auth=${alwaysAuth}`; if(scope && includeBothRegistries === "true") { const registryStringNoScope = `registry=${registryUrl}`; - newContents += `${registryStringNoScope}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}${os.EOL}${authContents}`; + newContents += `${registryStringNoScope}${os.EOL}${registryString}${os.EOL}${authContents}`; } else { newContents += `${authString}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}`; }