Skip to content

chore: switch release workflow to release-please - #285

Merged
jonathannorris merged 2 commits into
mainfrom
chore/release-please
Nov 16, 2026
Merged

jonathannorris merged 2 commits into
mainfrom
chore/release-please

Conversation

@jonathannorris

Copy link
Copy Markdown
Member

Summary

  • release.yaml now runs release-please on push to main. When it creates a release, the publish job dispatches dart.yml on the new tag to publish to pub.dev
  • add x-release-please-version markers to the version in pubspec.yaml, android/build.gradle, and the iOS podspec
  • the version bump and release no longer push with AUTOMATION_USER_TOKEN

Notes

Tags created by release-please with GITHUB_TOKEN don't trigger dart.yml's tag push event, so publishing goes through workflow_dispatch on the tag instead. Publishing from workflow_dispatch events needs to be enabled in the pub.dev admin settings for devcycle_flutter_client_sdk before this merges.

Related Issues

Same setup as DevCycleHQ/android-client-sdk#339 and DevCycleHQ/ios-client-sdk#278

@jonathannorris
jonathannorris requested a review from a team as a code owner November 14, 2026 03:02
Copilot AI balanced review requested due to automatic review settings November 14, 2026 03:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.yml on 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",
@jonathannorris
jonathannorris merged commit 4fe78fc into main Nov 16, 2026
4 checks passed
@jonathannorris
jonathannorris deleted the chore/release-please branch November 16, 2026 21:15
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.

3 participants