chore(release): prepare v0.1.3#5
Merged
Merged
Conversation
The skill launcher (bin/sonar) reads SONAR_BUNDLE_VERSION from plugin/skills/sonar-predictor/config.env to decide which sonar-predictor-dist-<version>.zip to fetch from Maven Central on first invocation. If that pin lags behind the release tag, every installed plugin pulls the wrong bundle. Two changes here: 1. Bump SONAR_BUNDLE_VERSION 0.1.1 -> 0.1.3 in config.env so the v0.1.3 release artifact ships the correct pin. 2. Add a publish.yml step that sed-bumps that pin to match the derived release version before the build, so future releases never hit this trap again — the committed value becomes informational and the CI step is the source of truth at deploy time.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Release-prep PR for v0.1.3.
What's in here
Bump
SONAR_BUNDLE_VERSIONto0.1.3inplugin/skills/sonar-predictor/config.env. The skill launcher (bin/sonar) reads this to decide whichsonar-predictor-dist-<version>.zipto fetch from Maven Central on first invocation. Before this PR it pointed at0.1.1, which would have made every v0.1.3 install download the wrong bundle.Add a CI step to
publish.ymlthat sed-bumps the pin to the derived release version right after the Mavenversions:setstep. After this PR merges, future release tags don't need a separate config.env bump commit — the workflow guarantees the deployed bundle's pin matches the tag.How v0.1.3 will be cut once this is merged
The
publish.ymlworkflow then:0.1.3from the tagconfig.envprotocol/daemon/cli(plus the parentsonar-predictor-parent-0.1.3-src.zip) to Maven Central via the Sonatype Central Portalsonar-predict-skill-0.1.3.zipTest plan
mvn clean packagegreen (156 tests pass)gh release download v0.1.3 -p 'sonar-predict-skill-*.zip', extract, runSONAR_PREDICTOR_HOME=... bin/sonar --version— verify pin in the extractedconfig.envreads0.1.3