]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
build: exit with code 1 on release failure (#7962)
authorHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 28 Mar 2023 01:43:09 +0000 (09:43 +0800)
committerGitHub <noreply@github.com>
Tue, 28 Mar 2023 01:43:09 +0000 (09:43 +0800)
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.

scripts/release.js

index 7303067fa08ce08e298a0f1feaf50e0c6de0d99d..ce91c2bb63c635ffcfe30a179b963bb8f1936546 100644 (file)
@@ -377,4 +377,5 @@ async function publishPackage(pkgName, version) {
 main().catch(err => {
   updateVersions(currentVersion)
   console.error(err)
+  process.exit(1)
 })