workflow: recover version when error occurred (#5493) [ci skip]

This commit is contained in:
Cloyd Lau 2022-05-13 08:15:13 +08:00 committed by GitHub
parent 8758da4749
commit 209483bed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,5 +232,6 @@ async function publishPackage(pkgName, version, runIfNotDry) {
}
main().catch(err => {
updateVersions(currentVersion)
console.error(err)
})