Automate per-branch releases (dev prereleases, main stable) - #5
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Replaces
dev-release.yamlwithauto-release.yaml, which runs on every push todevandmainand handles tag + publish automatically.devX.Y.Z→X.Y.Z-dev.N(N= highest existing dev tag + 1, auto)main+build)X.Y.Z;-dev.Nis never hand-edited. Since pub.dev publishes the pubspec version at the tag and requirestag == v<version>, the dev path synthesizes a release commit settingversion: X.Y.Z-dev.Nand tags that (tag-only push;devbranch untouched → no trigger loop).mainis guarded: ifvX.Y.Zalready exists it's a no-op, so only a version bump releases.publish.yaml, dispatched on the new tag ref.Rollout (expected, agreed)
devpublishes a stray0.4.0-dev.1(pubspec base is0.4.0) — harmless, sorts below0.4.0, retractable.mainauto-publishes0.4.0+1(the README banner release), since that tag doesn't exist yet. This is how the banner reaches pub.dev.Notes
-dev.N(minor pana hit, accepted for the dev channel).