ci: add automated release workflows for pub.dev publishing#257
Merged
Conversation
Adds a workflow_dispatch-driven release pipeline modeled on supabase-flutter: a Prepare Release workflow bumps versions/changelogs and opens a release PR, merging it tags changed packages, and each tag triggers a publish workflow that releases to pub.dev via trusted publishing and creates the GitHub release.
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.
Summary
release-prepare.yml(workflow_dispatch): bumps versions/changelogs via Melos versioning and opens achore(release): publish packagesPR (supportsprereleaseandgraduateinputs).release-tag.yml(push tomainon achore(release):commit): tags each changed package and triggersrelease-publish.ymlper package.release-publish.yml(workflow_dispatch, triggered per tag): runsmelos publishvia pub.dev trusted publishing and creates the GitHub release.CONTRIBUTING.md§7 to describe the new automated release process.Prerequisites before this can run end to end
GITHUB_TOKENis used throughout (no GitHub App). If org/repo settings block Actions from opening PRs or pushing tags onmain, enable "Allow GitHub Actions to create and approve pull requests" or switch to a PAT/App token.passkeys,passkeys_android,passkeys_darwin,passkeys_web,passkeys_windows,passkeys_platform_interface,corbado_auth, andcorbado_auth_firebasebeforerelease-publish.ymlcan publish.Test plan
release-prepare.ymlon a branch with pending changes and confirm the PR body/versions look rightrelease-tag.ymltags the right packages and triggersrelease-publish.ymlonly for changed onesrelease-publish.ymlpublishes to pub.dev and creates a GitHub release