From bd63194f4bab93ff2c6bc916fec56eb0d245bfe3 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 9 Dec 2018 16:26:28 +0100 Subject: [PATCH] fix(core): update --- ts/mod_npm/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/mod_npm/index.ts b/ts/mod_npm/index.ts index c26d845..ab1dd25 100644 --- a/ts/mod_npm/index.ts +++ b/ts/mod_npm/index.ts @@ -42,7 +42,7 @@ const prepare = async () => { plugins.smartparam.forEachMinimatch(process.env, 'NPMCI_TOKEN_NPM*', npmEnvArg => { const npmRegistryUrl = npmEnvArg.split('|')[0]; const npmToken = npmEnvArg.split('|')[1]; - npmrcFileString += `//${npmRegistryUrl}/:_authToken="${npmToken}"\n`; + npmrcFileString += `//${npmRegistryUrl}/:_authToken="${plugins.smartstring.base64.decode(npmToken)}"\n`; }); logger.log('info', `setting default npm registry to ${config.npmRegistryUrl}`); npmrcFileString += `registry=https://${config.npmRegistryUrl}\n`;