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:
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}`;
|
||||
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}`;
|
||||
|
|
|
@ -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}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue