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.
This commit is contained in:
Haoqun Jiang 2023-03-28 09:43:09 +08:00 committed by GitHub
parent 543d6dbc94
commit ff35fe9ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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