CI: Publish Chrome app
parent
e6a1ce180d
commit
b4014b9806
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue