You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GitHub publisher creates duplicate drafts with multiple dry runs #4325
I agree to follow the code of conduct that this project uses.
I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
7.11.1
Electron version
40.0.0
Operating system
Ubuntu 24.04 (publisher); dry runs generated on Windows, Ubuntu, macOS ARM, and macOS Intel
Last known working Electron Forge version
Unknown
Expected behavior
All restored dry runs for the same version upload their assets to one GitHub release.
Actual behavior
electron-forge publish --from-dry-run created two draft releases for the same tag and split the platform assets between them.
The first dry run created release 357129992. Five seconds later, the second dry run listed releases but did not find the new draft, so it created release 357130015.
Steps to reproduce
Configure @electron-forge/publisher-github with draft: true.
Run electron-forge publish --dry-run on multiple platforms.
Confirmed the root cause: publish --from-dry-run runs one publish() call per saved dry run on the same PublisherGithub instance, and each call re-lists releases to find an existing one — but GitHub's "list releases" API is eventually consistent, so it can miss the draft created seconds earlier by the previous dry run and create a second draft for the same tag. The fix caches the release found or created per tag on the publisher instance so subsequent calls reuse it: #4326 (against main) and #4327 (port to next).
Activity
claude commentedon Jul 21, 2026
Working with Samuel Attard and Erick Zhao
Confirmed the root cause:
publish --from-dry-runruns onepublish()call per saved dry run on the samePublisherGithubinstance, and each call re-lists releases to find an existing one — but GitHub's "list releases" API is eventually consistent, so it can miss the draft created seconds earlier by the previous dry run and create a second draft for the same tag. The fix caches the release found or created per tag on the publisher instance so subsequent calls reuse it: #4326 (againstmain) and #4327 (port tonext).fix: avoid duplicate draft releases when publishing multiple dry runs…
fix: avoid duplicate draft releases when publishing multiple dry runs (…