add more logging to debug
parent
e64e8b870d
commit
57b2563e28
|
|
@ -4776,7 +4776,7 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth) {
|
||||||
? `${scope}:registry=${registryUrl}`
|
? `${scope}:registry=${registryUrl}`
|
||||||
: `registry=${registryUrl}`;
|
: `registry=${registryUrl}`;
|
||||||
const alwaysAuthString = `always-auth=${alwaysAuth}`;
|
const alwaysAuthString = `always-auth=${alwaysAuth}`;
|
||||||
if (scope && includeBothRegistries) {
|
if (scope && includeBothRegistries === "true") {
|
||||||
const registryStringNoScope = `registry=${registryUrl}`;
|
const registryStringNoScope = `registry=${registryUrl}`;
|
||||||
newContents += `${authString}${os.EOL}${registryString}${os.EOL}${registryStringNoScope}${os.EOL}${alwaysAuthString}`;
|
newContents += `${authString}${os.EOL}${registryString}${os.EOL}${registryStringNoScope}${os.EOL}${alwaysAuthString}`;
|
||||||
}
|
}
|
||||||
|
|
@ -4786,6 +4786,7 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth) {
|
||||||
console.log(newContents);
|
console.log(newContents);
|
||||||
fs.writeFileSync(fileLocation, newContents);
|
fs.writeFileSync(fileLocation, newContents);
|
||||||
core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
|
core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
|
||||||
|
console.log(nodeAuthToken);
|
||||||
if (defaultNodeAuthToken !== nodeAuthToken) {
|
if (defaultNodeAuthToken !== nodeAuthToken) {
|
||||||
core.exportVariable('NODE_AUTH_TOKEN', nodeAuthToken);
|
core.exportVariable('NODE_AUTH_TOKEN', nodeAuthToken);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ async function writeRegistryToFile(
|
||||||
: `registry=${registryUrl}`;
|
: `registry=${registryUrl}`;
|
||||||
|
|
||||||
const alwaysAuthString: string = `always-auth=${alwaysAuth}`;
|
const alwaysAuthString: string = `always-auth=${alwaysAuth}`;
|
||||||
if(scope && includeBothRegistries) {
|
if(scope && includeBothRegistries === "true") {
|
||||||
const registryStringNoScope = `registry=${registryUrl}`;
|
const registryStringNoScope = `registry=${registryUrl}`;
|
||||||
newContents += `${authString}${os.EOL}${registryString}${os.EOL}${registryStringNoScope}${os.EOL}${alwaysAuthString}`;
|
newContents += `${authString}${os.EOL}${registryString}${os.EOL}${registryStringNoScope}${os.EOL}${alwaysAuthString}`;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -110,6 +110,7 @@ async function writeRegistryToFile(
|
||||||
console.log(newContents);
|
console.log(newContents);
|
||||||
fs.writeFileSync(fileLocation, newContents);
|
fs.writeFileSync(fileLocation, newContents);
|
||||||
core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
|
core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
|
||||||
|
console.log(nodeAuthToken);
|
||||||
if (defaultNodeAuthToken !== nodeAuthToken) {
|
if (defaultNodeAuthToken !== nodeAuthToken) {
|
||||||
core.exportVariable('NODE_AUTH_TOKEN', nodeAuthToken)
|
core.exportVariable('NODE_AUTH_TOKEN', nodeAuthToken)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue