Fix release workflow to update studio/package.json version#2688
Merged
Fix release workflow to update studio/package.json version#2688
Conversation
Contributor
🧪 CI InsightsHere's what we observed from your CI run for 71d3b55. 🟢 All jobs passed!But CI Insights is watching 👀 |
Copilot
AI
changed the title
[WIP] Update release workflow to change studio version in package.json
Fix release workflow to update studio/package.json version
Oct 21, 2025
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
robfrank
approved these changes
Oct 21, 2025
tae898
pushed a commit
to humemai/arcadedb-embedded-python
that referenced
this pull request
Oct 23, 2025
robfrank
pushed a commit
that referenced
this pull request
Nov 10, 2025
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.
Problem
The Maven release workflow (
mvn-release.yml) only updated version numbers in Mavenpom.xmlfiles usingmvn versions:set, but did not update the version instudio/package.json. This caused the studio package version to drift out of sync with the Maven project version over time.Solution
Added two new workflow steps to automatically update
studio/package.jsonduring the release process:studio/package.jsonto match the release version, ensuring the change is committed alongside thepom.xmlupdatesstudio/package.jsonto match the next development version, keeping versions synchronizedImplementation
The solution uses
jqto directly modify the JSON file:Why
jqinstead ofnpm version?npm versiontriggers lifecycle hooks defined inpackage.json(security checks, builds, git operations)jqprovides clean, direct JSON manipulation without side effectsExample
When the workflow runs with:
releaseversion: "25.9.0"nextversion: "25.9.1-SNAPSHOT"Results:
pom.xmlfiles andstudio/package.jsonwill have version25.9.0pom.xmlfiles andstudio/package.jsonwill have version25.9.1-SNAPSHOTThis ensures perfect version synchronization across Maven and npm packages throughout the entire release process.
Testing
Fixes #<issue_number>
Original prompt
Fixes #2495
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.