From 540d4fa764a822d3dfe6a8bac814e91af685e5c2 Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Fri, 7 Sep 2018 17:11:34 -0400 Subject: [PATCH] fix: pass custom `env` and `cwd` to `env-ci` --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 120aecd93e..fffd367ccf 100644 --- a/index.js +++ b/index.js @@ -20,8 +20,8 @@ const {COMMIT_NAME, COMMIT_EMAIL} = require('./lib/definitions/constants'); marked.setOptions({renderer: new TerminalRenderer()}); async function run(context, plugins) { - const {isCi, branch: ciBranch, isPr} = envCi(); const {cwd, env, options, logger} = context; + const {isCi, branch: ciBranch, isPr} = envCi({env, cwd}); if (!isCi && !options.dryRun && !options.noCi) { logger.log('This run was not triggered in a known CI environment, running in dry-run mode.'); diff --git a/package.json b/package.json index 35de418457..9677acb31f 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "aggregate-error": "^1.0.0", "cosmiconfig": "^5.0.1", "debug": "^3.1.0", - "env-ci": "^2.0.0", + "env-ci": "^2.4.0", "execa": "^1.0.0", "figures": "^2.0.0", "find-versions": "^2.0.0",