Skip to content

Fix release binary version to match tag#53

Merged
baryhuang merged 1 commit into
mainfrom
fix-release-version
Jan 1, 2026
Merged

Fix release binary version to match tag#53
baryhuang merged 1 commit into
mainfrom
fix-release-version

Conversation

@baryhuang

Copy link
Copy Markdown
Owner

Problem

Release binaries are named with hardcoded version 0.0.7 (e.g., Agentrooms-0.0.7.dmg) instead of the actual release version from the tag.

Solution

Add a step to update package.json version from the git tag before building:

- name: Update version from tag
  run: |
    # Extract version from tag (remove 'v' prefix if present)
    VERSION="${{ github.ref_name }}"
    VERSION="${VERSION#v}"
    echo "Setting version to: $VERSION"
    # Update package.json version
    npm version $VERSION --no-git-tag-version --allow-same-version

Result

After this fix, binaries will be named correctly:

  • Agentrooms-0.1.45.dmg (instead of Agentrooms-0.0.7.dmg)
  • Agentrooms-0.1.45-arm64.AppImage
  • etc.

Co-authored-by: openhands openhands@all-hands.dev

@baryhuang can click here to continue refining the PR

Update package.json version from the git tag before building,
so binaries are named with the correct release version instead
of the hardcoded 0.0.7.

Co-authored-by: openhands <openhands@all-hands.dev>
@baryhuang
baryhuang merged commit 548d9e8 into main Jan 1, 2026
3 checks passed
@baryhuang
baryhuang deleted the fix-release-version branch January 1, 2026 06:45
@baryhuang baryhuang mentioned this pull request Jan 1, 2026
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.

2 participants