1
0
Fork 0
mirror of https://github.com/actions/setup-node synced 2025-04-09 18:35:51 +00:00

add new setup

This commit is contained in:
Edward Romero 2020-06-23 21:42:01 -04:00
parent 4a5dd826b6
commit 948ae558fb
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View file

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

View file

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