From 3c9d73515f4322ced919e661d71b78f54f7c22ae Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Tue, 6 Aug 2019 09:47:51 -0400 Subject: [PATCH] Try exporting blank token --- lib/authutil.js | 2 ++ src/authutil.ts | 2 ++ 2 files changed, 4 insertions(+) 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'); }