Conversation
| cache: "gradle" | ||
|
|
||
| - name: Publish to Maven Central | ||
| run: ./gradlew publishMavenPublicationToSonatypeRepository -PVERSION=${{ steps.version.outputs.version }} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Ah, let me redo this with com.vanniktech.maven.publish which was the original goal...to be aligned w Rokt.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
812395f to
1c1d2b3
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
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 |
There was a problem hiding this comment.
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.


Instructions
Summary
Update release process to use Rokt release process.
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 triggeredRelease Draftworkflow that bumpsVERSION, updatesREADME.mdandCHANGELOG.md, smoke-tests viapublishToMavenLocal, and opens a release PR; and aRelease Publishworkflow that runs onVERSIONchanges merged tomainto run tests, publish to Maven Central, and create/update a GitHub Release fromCHANGELOG.mdnotes.Updates Gradle publishing by switching from
maven-publish/manual signing tocom.vanniktech.maven.publish(including central portal publishing and signing), updates docs to usepublishToMavenLocal, and reformatsCHANGELOG.mdto Keep a Changelog style with link references; removes the oldrelease.ymlworkflow andrelease.config.js.Written by Cursor Bugbot for commit 1c1d2b3. This will update automatically on new commits. Configure here.