From 2453b9954ff7a2ebea3f1516568e854a60d2ca7f Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 1 Jan 2026 06:44:32 +0000 Subject: [PATCH] Fix release binary version to match tag 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 --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a6d8664f..d9445eba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,6 +74,15 @@ jobs: node-version: "22" cache: "npm" + - 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 + - name: Install dependencies run: npm install