Explorar el Código

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.
Haoqun Jiang hace 3 años
padre
commit
ff35fe9ffe
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      scripts/release.js

+ 1 - 0
scripts/release.js

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