Skip to content

chore(release): automate version bumping in release workflow#289

Merged
LuD1161 merged 2 commits intomainfrom
LuD1161/fix-version-bump
Feb 15, 2026
Merged

chore(release): automate version bumping in release workflow#289
LuD1161 merged 2 commits intomainfrom
LuD1161/fix-version-bump

Conversation

@LuD1161
Copy link
Contributor

@LuD1161 LuD1161 commented Feb 15, 2026

Summary

Fixes the "UPDATE AVAILABLE" warning by syncing package.json version with releases.

Changes

  • Bump package.json to v0.2.0: Matches the latest released version
  • Add version-bump step to release workflow: Automatically commits updated package.json back to main after successful releases
  • Idempotent design: Skips commit if version already matches
  • Uses [skip ci] flag: Prevents recursive workflow triggers

Problem

The v0.2 git tag was created but package.json remained at 0.1.2, causing version-check to show upgrade warnings on every startup.

Solution

The release workflow now:

  1. Builds and publishes Docker images
  2. Updates version-check API
  3. NEW: Checks out main, updates package.json, commits, and pushes

This ensures the repo version stays in sync with released artifacts.

Test plan

  • Verified changes compile
  • Will be tested on next release (v0.3+)

- Bump package.json version to 0.2.0 to match latest release
- Add automated version-bump step in release.yml workflow
- Step updates package.json on main after successful release
- Prevents version drift between released artifacts and repo
- Uses [skip ci] to avoid recursive workflow triggers

Signed-off-by: Aseem Shrey <LuD1161@users.noreply.github.com>
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8c12db83e8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- Add conditional check to only update package.json when is_latest=true
- Prevents older backport/patch releases from overwriting main's version
- Example: releasing v0.1.3 after v0.2.1 won't downgrade main to 0.1.3
- Update release summary to reflect conditional behavior

Addresses feedback from @changex-codex-connector

Signed-off-by: Aseem Shrey <LuD1161@users.noreply.github.com>
@LuD1161 LuD1161 merged commit 9500f70 into main Feb 15, 2026
3 checks passed
@LuD1161 LuD1161 deleted the LuD1161/fix-version-bump branch February 15, 2026 19:34
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