mirror of https://github.com/vuejs/core.git
ci: fix canary release workflow (#11516)
This commit is contained in:
parent
e26fd7b1d1
commit
63fd8b683a
|
@ -95,8 +95,17 @@ export async function exec(command, args, options) {
|
||||||
const ok = code === 0
|
const ok = code === 0
|
||||||
const stderr = Buffer.concat(stderrChunks).toString().trim()
|
const stderr = Buffer.concat(stderrChunks).toString().trim()
|
||||||
const stdout = Buffer.concat(stdoutChunks).toString().trim()
|
const stdout = Buffer.concat(stdoutChunks).toString().trim()
|
||||||
|
|
||||||
|
if (ok) {
|
||||||
const result = { ok, code, stderr, stdout }
|
const result = { ok, code, stderr, stdout }
|
||||||
resolve(result)
|
resolve(result)
|
||||||
|
} else {
|
||||||
|
reject(
|
||||||
|
new Error(
|
||||||
|
`Failed to execute command: ${command} ${args.join(' ')}: ${stderr}`,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue