From 5cb8a79b6af6c924deac0d62a1f8c8d79c1bf894 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 9 Dec 2018 16:48:33 +0100 Subject: [PATCH] fix(core): update --- ts/mod_npm/index.ts | 2 +- ts/mod_trigger/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/mod_npm/index.ts b/ts/mod_npm/index.ts index ab1dd25..2ea4db3 100644 --- a/ts/mod_npm/index.ts +++ b/ts/mod_npm/index.ts @@ -39,7 +39,7 @@ export let handleCli = async argvArg => { const prepare = async () => { const config = await configModule.getConfig(); let npmrcFileString: string = ''; - plugins.smartparam.forEachMinimatch(process.env, 'NPMCI_TOKEN_NPM*', npmEnvArg => { + await plugins.smartparam.forEachMinimatch(process.env, 'NPMCI_TOKEN_NPM*', npmEnvArg => { const npmRegistryUrl = npmEnvArg.split('|')[0]; const npmToken = npmEnvArg.split('|')[1]; npmrcFileString += `//${npmRegistryUrl}/:_authToken="${plugins.smartstring.base64.decode(npmToken)}"\n`; diff --git a/ts/mod_trigger/index.ts b/ts/mod_trigger/index.ts index fe2e6f0..a747a73 100644 --- a/ts/mod_trigger/index.ts +++ b/ts/mod_trigger/index.ts @@ -6,7 +6,7 @@ const triggerValueRegex = /^([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*) export let trigger = async () => { logger.log('info', 'now running triggers'); - plugins.smartparam.forEachMinimatch(process.env, 'NPMCI_TRIGGER_*', evaluateTrigger); + await plugins.smartparam.forEachMinimatch(process.env, 'NPMCI_TRIGGER_*', evaluateTrigger); }; const evaluateTrigger = async triggerEnvVarArg => {