Skip to content

ci: support alpha beta and release candidate versions#708

Merged
jamesnrokt merged 11 commits into
workstation/6.0-Releasefrom
ci/kits-prerelease-support
May 21, 2026
Merged

ci: support alpha beta and release candidate versions#708
jamesnrokt merged 11 commits into
workstation/6.0-Releasefrom
ci/kits-prerelease-support

Conversation

@thomson-t
Copy link
Copy Markdown
Collaborator

Background

The Android monorepo release workflow needs fixed pre-release Maven Central versions for partner and internal validation before stable releases. The current draft workflow can only prepare stable patch, minor, or major versions, and the publish workflow only runs from main while always marking GitHub releases as latest.

What Has Changed

  • Added qualified version support to Release - Draft with optional qualifier input and bump-type=none for moving between alpha, beta, release candidate, and stable versions.
  • Updated generated release PRs to target the selected dispatch branch and use compliant release/prep-<version> branch names.
  • Updated Release - Publish to run from main and workstation/*, and to mark qualified versions as GitHub pre-releases instead of latest releases.
  • Rewrote RELEASE.md around the current draft and publish workflows, and added a changelog entry for the release workflow capability.

Screenshots/Video

N/A — workflow and documentation changes only.

Checklist

  • I have performed a self-review of my own code.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have tested this locally.

Additional Notes

Validated locally with:

  • trunk check
  • trunk check --ci
  • ./gradlew publishMavenPublicationToMavenLocal -PVERSION=6.0.0-alpha1
  • ./gradlew publishMavenPublicationToMavenLocal -PVERSION=6.0.0-alpha1 -c settings-kits.gradle -Pmparticle.kit.mparticleFromMavenLocalOnly=true
  • ./gradlew build
  • ./gradlew test
  • ./gradlew ktlintCheck
  • git diff --check

Add qualified release version handling to the draft workflow so alpha, beta, and release candidate versions can be prepared from the selected branch.

Publish workflow releases now run from workstation branches and mark qualified versions as GitHub pre-releases instead of latest stable releases.

Document the new release flow and record the workflow capability in the changelog.
@thomson-t thomson-t requested a review from a team as a code owner May 21, 2026 15:43
@cursor
Copy link
Copy Markdown

cursor Bot commented May 21, 2026

PR Summary

Medium Risk
Changes the automated release/versioning pipeline (VERSION computation, PR targeting, and GitHub release flags), which could impact publishing/tagging if misconfigured, but is limited to CI/workflow logic.

Overview
Adds qualified version support to Release – Draft by introducing a qualifier input and a bump-type=none option, validating qualifier format, composing the final VERSION from the base semver + optional qualifier, and failing fast if the computed version would be unchanged.

Adjusts the draft PR creation to work off the selected dispatch branch (checkout and PR base) and updates branch naming to release-prep/<version>.

Extends Release – Publish to run on workstation/* branches and sets GitHub release prerelease/makeLatest based on whether VERSION contains a qualifier; updates CHANGELOG.md and rewrites RELEASE.md to document the new qualified-release flow.

Reviewed by Cursor Bugbot for commit a53d764. Bugbot is set up for automated code reviews on this repo. Configure here.

@thomson-t thomson-t changed the title ci(release): support alpha beta and release candidate versions ci: support alpha beta and release candidate versions May 21, 2026
denischilik
denischilik previously approved these changes May 21, 2026
Comment thread .github/workflows/release-draft.yml Outdated
@sonarqubecloud
Copy link
Copy Markdown

@jamesnrokt jamesnrokt merged commit 165a3af into workstation/6.0-Release May 21, 2026
20 of 22 checks passed
@jamesnrokt jamesnrokt deleted the ci/kits-prerelease-support branch May 21, 2026 21:30
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