mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
add new setup
This commit is contained in:
parent
4a5dd826b6
commit
948ae558fb
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -4773,7 +4773,7 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth) {
|
||||||
const alwaysAuthString = `always-auth=${alwaysAuth}`;
|
const alwaysAuthString = `always-auth=${alwaysAuth}`;
|
||||||
if (scope && includeBothRegistries === "true") {
|
if (scope && includeBothRegistries === "true") {
|
||||||
const registryStringNoScope = `registry=${registryUrl}`;
|
const registryStringNoScope = `registry=${registryUrl}`;
|
||||||
newContents += `${registryStringNoScope}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}${os.EOL}${authContents}`;
|
newContents += `${registryStringNoScope}${os.EOL}${registryString}${os.EOL}${authContents}`;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
newContents += `${authString}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}`;
|
newContents += `${authString}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}`;
|
||||||
|
|
|
@ -97,7 +97,7 @@ async function writeRegistryToFile(
|
||||||
const alwaysAuthString: string = `always-auth=${alwaysAuth}`;
|
const alwaysAuthString: string = `always-auth=${alwaysAuth}`;
|
||||||
if(scope && includeBothRegistries === "true") {
|
if(scope && includeBothRegistries === "true") {
|
||||||
const registryStringNoScope = `registry=${registryUrl}`;
|
const registryStringNoScope = `registry=${registryUrl}`;
|
||||||
newContents += `${registryStringNoScope}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}${os.EOL}${authContents}`;
|
newContents += `${registryStringNoScope}${os.EOL}${registryString}${os.EOL}${authContents}`;
|
||||||
} else {
|
} else {
|
||||||
newContents += `${authString}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}`;
|
newContents += `${authString}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue