From: Haoqun Jiang Date: Tue, 28 Mar 2023 01:43:09 +0000 (+0800) Subject: build: exit with code 1 on release failure (#7962) X-Git-Tag: v3.3.0-alpha.6~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff35fe9ffe3bcb2c26579fc4a03c6f0cac27fa14;p=thirdparty%2Fvuejs%2Fcore.git build: exit with code 1 on release failure (#7962) See https://github.com/vuejs/core/actions/runs/4527710331/jobs/7973811532#step:6:279 The canary release action should fail if the release script fails. --- diff --git a/scripts/release.js b/scripts/release.js index 7303067fa0..ce91c2bb63 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -377,4 +377,5 @@ async function publishPackage(pkgName, version) { main().catch(err => { updateVersions(currentVersion) console.error(err) + process.exit(1) })