mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Exit sentry:publish
with non-zero code upon failure (#9893)
The `sentry:publish` script now exits with an exit code of `1` upon failure, indicating that something went wrong. Previously it would exit with a code of `0`, indicating to CI that everything worked correctly. The script will now also exit early if the authentication check fails.
This commit is contained in:
parent
7ca77fa481
commit
c4d71a3211
@ -5,12 +5,15 @@ const pify = require('pify')
|
||||
const exec = pify(childProcess.exec, { multiArgs: true })
|
||||
const VERSION = require('../dist/chrome/manifest.json').version // eslint-disable-line import/no-unresolved
|
||||
|
||||
start().catch(console.error)
|
||||
start().catch((error) => {
|
||||
console.error(error)
|
||||
process.exit(1)
|
||||
})
|
||||
|
||||
async function start() {
|
||||
const authWorked = await checkIfAuthWorks()
|
||||
if (!authWorked) {
|
||||
console.log(`Sentry auth failed...`)
|
||||
throw new Error(`Sentry auth failed`)
|
||||
}
|
||||
// check if version exists or not
|
||||
const versionAlreadyExists = await checkIfVersionExists()
|
||||
|
Loading…
Reference in New Issue
Block a user