Repository navigation
chore: switch release workflow to release-please - #285
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The default release-please configuration excludes the workflows’ chore: SDK-update commits, preventing native-SDK-only updates from opening a Flutter release PR, even with manual dispatch.
1 open issue
What changed in this PR
This PR replaces the Flutter SDK’s manual release process with release-please and dispatches publishing separately to handle tags created with GITHUB_TOKEN.
Changes:
- Run release-please on pushes to
main, replacing token-based version commits and release creation. - Track release versions through a manifest and markers in Flutter, Android, and iOS metadata.
- Dispatch
dart.ymlon newly released tags to publish to pub.dev; workflow-dispatch publishing must first be enabled in pub.dev settings.
| File | Description |
|---|---|
release-please-config.json |
Configures release strategy and version-update files. |
pubspec.yaml |
Marks the Flutter package version for automated updates. |
ios/devcycle_flutter_client_sdk.podspec |
Marks the iOS package version for automated updates. |
android/build.gradle |
Marks the Android package version for automated updates. |
.release-please-manifest.json |
Initializes the tracked release version to 1.11.9. |
.github/workflows/release.yaml |
Replaces manual release steps with release-please and publish dispatch. |
Review effort: Balanced
| "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", | ||
| "packages": { | ||
| ".": { | ||
| "release-type": "simple", |
jsalaber
approved these changes
Nov 16, 2026
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.yamlnow runs release-please on push tomain. When it creates a release, thepublishjob dispatchesdart.ymlon the new tag to publish to pub.devx-release-please-versionmarkers to the version inpubspec.yaml,android/build.gradle, and the iOS podspecAUTOMATION_USER_TOKENNotes
Tags created by release-please with
GITHUB_TOKENdon't triggerdart.yml's tag push event, so publishing goes throughworkflow_dispatchon the tag instead. Publishing fromworkflow_dispatchevents needs to be enabled in the pub.dev admin settings fordevcycle_flutter_client_sdkbefore this merges.Related Issues
Same setup as DevCycleHQ/android-client-sdk#339 and DevCycleHQ/ios-client-sdk#278