mirror of
https://github.com/actions/setup-node
synced 2025-04-10 02:45:50 +00:00
update new npmrc contents
This commit is contained in:
parent
57b2563e28
commit
27178c9780
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -4778,7 +4778,7 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth) {
|
|||
const alwaysAuthString = `always-auth=${alwaysAuth}`;
|
||||
if (scope && includeBothRegistries === "true") {
|
||||
const registryStringNoScope = `registry=${registryUrl}`;
|
||||
newContents += `${authString}${os.EOL}${registryString}${os.EOL}${registryStringNoScope}${os.EOL}${alwaysAuthString}`;
|
||||
newContents += `${registryStringNoScope}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}${os.EOL}${authString}`;
|
||||
}
|
||||
else {
|
||||
newContents += `${authString}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}`;
|
||||
|
|
|
@ -102,7 +102,7 @@ async function writeRegistryToFile(
|
|||
const alwaysAuthString: string = `always-auth=${alwaysAuth}`;
|
||||
if(scope && includeBothRegistries === "true") {
|
||||
const registryStringNoScope = `registry=${registryUrl}`;
|
||||
newContents += `${authString}${os.EOL}${registryString}${os.EOL}${registryStringNoScope}${os.EOL}${alwaysAuthString}`;
|
||||
newContents += `${registryStringNoScope}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}${os.EOL}${authString}`;
|
||||
} else {
|
||||
newContents += `${authString}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue