diff --git a/packages/core/src/cli.js b/packages/core/src/cli.js index 1f598df..9baa93e 100755 --- a/packages/core/src/cli.js +++ b/packages/core/src/cli.js @@ -60,8 +60,9 @@ else { const forwardProcessCode = (fn) => async (...args) => { const child = await fn(...args); if ('object' !== typeof child) { - debug('action returned code %d', child); - process.exitCode = child; + const code = 'undefined' !== typeof child ? child : 0; + debug('action returned code %d', code); + process.exitCode = code; return; } try {