diff --git a/lib/authutil.js b/lib/authutil.js index 7feec08..a8bed4f 100644 --- a/lib/authutil.js +++ b/lib/authutil.js @@ -44,4 +44,6 @@ function writeRegistryToFile(registryUrl, fileLocation) { newContents += `${registryString}${os.EOL}${authString}`; fs.writeFileSync(fileLocation, newContents); core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation); + // Export empty node_auth_token so npm doesn't complain about not being able to find it + core.exportVariable('NODE_AUTH_TOKEN', 'XXXXX-XXXXX-XXXXX-XXXXX'); } diff --git a/src/authutil.ts b/src/authutil.ts index 5afa991..b9a4a04 100644 --- a/src/authutil.ts +++ b/src/authutil.ts @@ -42,4 +42,6 @@ function writeRegistryToFile(registryUrl: string, fileLocation: string) { newContents += `${registryString}${os.EOL}${authString}`; fs.writeFileSync(fileLocation, newContents); core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation); + // Export empty node_auth_token so npm doesn't complain about not being able to find it + core.exportVariable('NODE_AUTH_TOKEN', 'XXXXX-XXXXX-XXXXX-XXXXX'); }