CI: Publish Chrome app

master
rubenwardy 2021-09-24 17:27:27 +01:00
parent e6a1ce180d
commit b4014b9806
2 changed files with 8 additions and 1 deletions

View File

@ -44,3 +44,6 @@ echo " NODE_ENV=production npm run start:firefox"
echo " NODE_ENV=production npm run start:chrome"
echo ""
echo "and then push the commit and tag."
echo ""
echo "WARNING: Make sure you edit the chrome store page before pushing the tag"

View File

@ -108,6 +108,7 @@ async function upload(zipPath) {
console.log("Uploading to Chrome Web Store...")
const res = await webstore.uploadExisting(myZipFile, token);
console.log(res);
await webstore.publish();
}
if (process.argv.length < 3) {
@ -125,4 +126,7 @@ if (!process.argv[2].endsWith("chrome.zip")) {
process.exit(1);
}
upload(process.argv[2]).catch(console.error);
upload(process.argv[2]).catch(e => {
console.error(e);
process.exit(1);
});