From: David Matter Date: Tue, 6 Aug 2024 06:34:31 +0000 (+0200) Subject: ci: fix canary release workflow (#11516) X-Git-Tag: v3.4.36~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63fd8b683a29ef2132c96df059cd5c76b7e18c6c;p=thirdparty%2Fvuejs%2Fcore.git ci: fix canary release workflow (#11516) --- diff --git a/scripts/utils.js b/scripts/utils.js index 2050b05b7c..056d95b7b0 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -95,8 +95,17 @@ export async function exec(command, args, options) { const ok = code === 0 const stderr = Buffer.concat(stderrChunks).toString().trim() const stdout = Buffer.concat(stdoutChunks).toString().trim() - const result = { ok, code, stderr, stdout } - resolve(result) + + if (ok) { + const result = { ok, code, stderr, stdout } + resolve(result) + } else { + reject( + new Error( + `Failed to execute command: ${command} ${args.join(' ')}: ${stderr}`, + ), + ) + } }) }) }