Skip to content

Commit

Permalink
don't fail on republish - probably a bad idea but what the heck
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoma committed Apr 20, 2020
1 parent a405e4d commit 40fba5f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,16 @@ const runAction = () => {
run(`npm run ${buildScriptName} --if-present`, pkgRoot);
}

log(`Building${release ? " and releasing" : ""} the Electron app…`);
run(
`npx electron-forge publish`,
appRoot,
);
try {
log(`Building${release ? " and releasing" : ""} the Electron app…`);
run(
`npx electron-forge publish`,
appRoot,
);
} catch(err) {
log(`Failed with an error, probably the "it already exists" one`)
log(err.message)
}
};

runAction();

0 comments on commit 40fba5f

Please sign in to comment.