Print error before exit

This commit is contained in:
Jai A P 2022-08-30 11:45:29 +05:30 committed by Eugene
parent 6fbb2a2274
commit 0bc8c3e1de

View file

@ -21,4 +21,7 @@ builder({
} : undefined,
},
publish: ( process.env.GH_TOKEN || process.env.GITHUB_TOKEN ) ? ( isTag ? 'always' : 'onTagOrDraft' ) : 'never',
}).catch(() => process.exit(1))
}).catch(e => {
console.error(e)
process.exit(1)
})