add log to figure out if we are writting everything properly

This commit is contained in:
Edward Romero 2020-06-23 21:00:17 -04:00
parent f5faff30bb
commit a10d0967b5

View file

@ -107,6 +107,7 @@ async function writeRegistryToFile(
newContents += `${authString}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}`; newContents += `${authString}${os.EOL}${registryString}${os.EOL}${alwaysAuthString}`;
} }
console.log(newContents);
fs.writeFileSync(fileLocation, newContents); fs.writeFileSync(fileLocation, newContents);
core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation); core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
if (defaultNodeAuthToken !== nodeAuthToken) { if (defaultNodeAuthToken !== nodeAuthToken) {