electron-builder: Error: Release must be a draft
Hey there,
I’m testing out deployments for my application. The first deployment works, but subsequent deployments all fail with Error: Release must be a draft.
For both of these builds, all I did was push a tag. I am not creating any release drafts myself, I am letting electron-builder take care of that. This process works for the first build, but fails after that. If I delete all existing releases, it works again for a single build.
Thanks!
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (9 by maintainers)
Commits related to this issue
- feat(publisher): Check that tag name starts with "v" #340 — committed to electron-userland/electron-builder by develar 8 years ago
- don't build tags https://github.com/electron-userland/electron-builder/issues/340#issueco mment-224630526 — committed to joeferraro/MavensMate-Desktop by joeferraro 8 years ago
Btw, once I have everything working, I’d like to contribute to the docs and help clarify the places where I had problems. I’ll open another issue to discuss the changes I plan to make before I open a PR.
I’ve discovered the problem. I wasn’t updating the
versionfield of myapp/package.json. I was only updating the mainpackage.json. This resulted in my CI logs printing1.0.1, but the artifacts were built as1.0.0and being deployed to that release. This also explains theError: Release must be a draftI was getting; it was attempting to upload artifacts to my already-publishedv1.0.0release, rather than drafting a new release for thev1.0.1tag. This seems like an easy mistake to make, so perhapselectron-buildershould throw an error in this case.Also, the tag name did indeed need to be prefixed with
v. This was the configuration that worked once I fixed myapp/package.json:v1.0.1v1.0.1