Skip to content

ci(release): auto-bump pluginVersion after publish#82

Merged
lukaszlenart merged 1 commit into
mainfrom
ci/release-bump-plugin-version
Apr 28, 2026
Merged

ci(release): auto-bump pluginVersion after publish#82
lukaszlenart merged 1 commit into
mainfrom
ci/release-bump-plugin-version

Conversation

@lukaszlenart
Copy link
Copy Markdown
Member

@lukaszlenart lukaszlenart commented Apr 28, 2026

Summary

After the plugin is published to JetBrains Marketplace, automatically bump the pluginVersion in gradle.properties so the next release cycle starts from a fresh number.

The BUILD segment is incremented by the number of nightly tags between the previous release tag and the just-released tag (each nightly = one code change). BRANCH and FIX are preserved.

Worked example using v261.19017.1 (just released):

  • Previous release: v252.18980.1
  • Nightly tags in v261.19017.1's ancestry since then: 10
  • Next pluginVersion: 261.19027.1

Notes

  • The version bump is rolled into the existing post-release PR (which previously only patched CHANGELOG.md). One PR per release cycle, with both CHANGELOG.md and gradle.properties changes — the PR is renamed Post-release ...: changelog + bump to ....
  • fetch-depth: 0 added to the checkout so the bump step can git tag --merged/--no-merged against history.
  • Floors at +1 so the BUILD always advances, even if for some reason no nightlies are tagged in a cycle.
  • A separate PR will apply the bump manually for the just-released v261.19017.1 (which predates this workflow change).

Test plan

  • Next release → workflow opens a single Post-release PR with both CHANGELOG.md patch and gradle.properties bump
  • Bump magnitude matches the number of nightlies tagged since the previous release

After the plugin is published to Marketplace, count nightly tags
between the previous release tag and the current one (each nightly
represents one code change). Bump the BUILD segment of pluginVersion
in gradle.properties by that count and roll the change into the
existing post-release PR alongside the changelog patch.

Requires fetch-depth: 0 on checkout so the version-bump step can
walk tag history.
@github-actions
Copy link
Copy Markdown

🔌 Plugin artifact ready for testing!

Download from Actions artifacts

Artifact: struts2-261.19017.1

@lukaszlenart lukaszlenart enabled auto-merge (squash) April 28, 2026 12:49
@lukaszlenart lukaszlenart merged commit 74aa6b5 into main Apr 28, 2026
5 checks passed
@lukaszlenart lukaszlenart deleted the ci/release-bump-plugin-version branch April 28, 2026 12:50
lukaszlenart added a commit that referenced this pull request Apr 28, 2026
Manual application of the post-release version-bump rule (#82) for
the already-published v261.19017.1, which predates that automation.
BUILD increased by 10 (count of nightly tags between v252.18980.1
and v261.19017.1).
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.

1 participant