Skip to content

ci: Update release process#26

Merged
rmi22186 merged 2 commits intomainfrom
ci/no-jira-update-to-rokt-release
Mar 18, 2026
Merged

ci: Update release process#26
rmi22186 merged 2 commits intomainfrom
ci/no-jira-update-to-rokt-release

Conversation

@rmi22186
Copy link
Member

@rmi22186 rmi22186 commented Mar 18, 2026

Instructions

  1. PR target branch should be against main
  2. PR title name should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-title-check.yml
  3. PR branch prefix should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-branch-check-name.yml

Summary

Update release process to use Rokt release process.

  1. Manually run Release Draft which asks you to bump the version number
  2. The workflow bumps the VERSION file, updates README.md and CHANGELOG.md, and creates a PR (e.g. release/2.7.0)
  3. Review and merge that PR
  4. Merging changes the VERSION file on main automatically triggers release-publish.yml
  5. That runs tests, publishes to Maven Central, and creates a GitHub Release

Testing Plan

Used https://github.com/mParticle/react-native-mparticle/pull/216/files and mParticle/mparticle-android-sdk#663 for inspiration


Note

Medium Risk
Moderate risk because it rewires the release and publishing automation (version bumping, changelog generation, Maven Central publish, and GitHub release creation), where misconfiguration could break releases or publish incorrect artifacts.

Overview
Replaces the previous semantic-release-based GitHub Actions workflow with a two-step release process: a manually triggered Release Draft workflow that bumps VERSION, updates README.md and CHANGELOG.md, smoke-tests via publishToMavenLocal, and opens a release PR; and a Release Publish workflow that runs on VERSION changes merged to main to run tests, publish to Maven Central, and create/update a GitHub Release from CHANGELOG.md notes.

Updates Gradle publishing by switching from maven-publish/manual signing to com.vanniktech.maven.publish (including central portal publishing and signing), updates docs to use publishToMavenLocal, and reformats CHANGELOG.md to Keep a Changelog style with link references; removes the old release.yml workflow and release.config.js.

Written by Cursor Bugbot for commit 1c1d2b3. This will update automatically on new commits. Configure here.

cache: "gradle"

- name: Publish to Maven Central
run: ./gradlew publishMavenPublicationToSonatypeRepository -PVERSION=${{ steps.version.outputs.version }}

Choose a reason for hiding this comment

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

Since we are not migrating to the com.vanniktech.maven.publish at this point, we will have to do the workaround as described here https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#ensuring-deployment-visibility-in-the-central-publisher-portal
I think we can use the same step like this mParticle/mparticle-android-sdk#611

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, let me redo this with com.vanniktech.maven.publish which was the original goal...to be aligned w Rokt.

Base automatically changed from chore/no-jira-gradle-modernization to main March 18, 2026 20:53
rmi22186 and others added 2 commits March 18, 2026 16:54
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rmi22186 rmi22186 force-pushed the ci/no-jira-update-to-rokt-release branch from 812395f to 1c1d2b3 Compare March 18, 2026 20:54
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

## [Unreleased]

## [2.6.0](https://github.com/mParticle/mparticle-java-events-sdk/compare/v2.5.4...v2.6.0) (2024-10-24)
## [2.7.0] - 2026-03-17
Copy link

Choose a reason for hiding this comment

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

VERSION file is stale, will produce wrong version

High Severity

The VERSION file contains 2.6.0, but the reformatted CHANGELOG.md in this PR documents 2.7.0 as the latest release. The new release-draft.yml reads VERSION to determine the current version before bumping. On first use, a "patch" bump yields 2.6.1 (regression below 2.7.0), a "minor" bump yields 2.7.0 (collision with existing release), and only "major" avoids conflict but skips versions. The VERSION file needs to be updated to 2.7.0 in this PR.

Additional Locations (1)
Fix in Cursor Fix in Web

@rmi22186 rmi22186 merged commit 80fbb4d into main Mar 18, 2026
6 checks passed
@rmi22186 rmi22186 deleted the ci/no-jira-update-to-rokt-release branch March 18, 2026 21:03
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.

2 participants