-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uploading a new extension publishes a previous version and not a new one #80
Comments
Note that there's a dedicated method to upload and publish, you can use that one. |
I got confused with the cli version. Is there a specific reason to use this module instead of |
Because I have some actions that happen before and after (for example I check if I forgot to change the manifest number) and I'd rather have 1 code to do everything, than having multiple node apps and a bash script that puts everything together. |
I used this script just last week without issue: https://github.com/fregante/chrome-webstore-upload/blob/main/test/live-test.js
Try using the .upload() method alone, after that one it should appear in the dashboard as a new draft version (wait a minute for it to update first) .publish() just instructs the store to publish whatever version is in draft, so if the first step fails then this one won't do anything. |
That's the one I meant |
Ok I found the problem. Thank you for your prompt help. Best |
Thanks for the update! The cli script actually tries to validate the input folder and can provide better errors. At some point I might move that functionality to this repository instead. |
I think the issue here was that this module does not handle errors by the API, because it responds with HTTP 200. I opened an issue to improve that handling: I think the cli has some of this this built-in |
I have the following code
Issue:
Tests:
The text was updated successfully, but these errors were encountered: