question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Release must be a draft

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
alvancampcommented, Apr 20, 2016

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.

1reaction
alvancampcommented, Apr 20, 2016

I’ve discovered the problem. I wasn’t updating the version field of my app/package.json. I was only updating the main package.json. This resulted in my CI logs printing 1.0.1, but the artifacts were built as 1.0.0 and being deployed to that release. This also explains the Error: Release must be a draft I was getting; it was attempting to upload artifacts to my already-published v1.0.0 release, rather than drafting a new release for the v1.0.1 tag. This seems like an easy mistake to make, so perhaps electron-builder should 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 my app/package.json:

  • Tag version: v1.0.1
  • Release title: v1.0.1
Read more comments on GitHub >

github_iconTop Results From Across the Web

Only releases with status draft may be created on draft app ...
I'm trying to publish to PlayStore Internal track. ... [!] Google Api Error: badRequest: Only releases with status draft may be created on...
Read more >
Only releases with status draft may be created on draft app
The app is intended only for internal testing and it will never be released to the public. I assume that means it will...
Read more >
Fastlane: Only releases with status draft may be created on ...
Google Api Error: Invalid request - Only releases with status draft may be created on draft app. You must create an Alpha channel...
Read more >
Only releases with status draft may be created on draft app
"Only releases with status draft may be created on draft app" ... Studio and then click the "Distribute" button I get the error...
Read more >
PRC: PO: Draft Purchase Orders Rest API Error-ed "You must ...
Oracle Fusion Purchasing Cloud Service - Version 11.13.20.04.0 and later: PRC: PO: Draft Purchase Orders Rest API Error-ed "You must provide ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found