Skip to content

fix: use gh release create so releases work with immutable releases - #13

Merged
dsherret merged 1 commit into
mainfrom
fix-immutable-releases
Oct 17, 2026
Merged

dsherret merged 1 commit into
mainfrom
fix-immutable-releases

Conversation

@dsherret

Copy link
Copy Markdown
Member

Replaces softprops/action-gh-release with gh release create so releases work with GitHub's immutable releases.

With immutable releases turned on, assets can't be added after a release is published. Most plugins pinned a softprops commit from 2022 that publishes the release first and then uploads the assets, so the uploads fail with 422 Cannot upload assets to an immutable release. That's what happened with dprint-plugin-roslyn 0.23.3: https://github.com/dprint/dprint-plugin-roslyn/actions/runs/39071848133

gh release create uploads the assets to a draft and only publishes once they're all there (and deletes the draft if an upload fails). It's preinstalled on the runners, so this also drops the third-party action. The release title, notes and assets are unchanged. --verify-tag makes it fail rather than create a tag if the tag doesn't exist.

The same change is being made across the dprint plugin repos so they stay standardized.

@dsherret
dsherret merged commit 406249c into main Oct 17, 2026
2 checks passed
@dsherret
dsherret deleted the fix-immutable-releases branch October 17, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant