From fb384c1cd718fde9811bf81b81b159c48b107c40 Mon Sep 17 00:00:00 2001 From: Yogendra Shelke <25844542+YogendraShelke@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:34:41 +0530 Subject: [PATCH] fix: update version calculation method in release workflow fix: correct comment formatting in version calculation step --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab2c140..58c6a89 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: run: | # Use npm version to calculate the next version without modifying files CURRENT_VERSION=$(node -p "require('./package.json').version") - NEW_VERSION=$(npm version ${{ github.event.inputs.version }} --no-git-tag-version) + NEW_VERSION=$(npx semver $CURRENT_VERSION -i ${{ github.event.inputs.version }}) # Restore package.json to avoid dirty state git checkout package.json package-lock.json 2>/dev/null || true @@ -106,6 +106,7 @@ jobs: name: ${{ steps.bump.outputs.version }} body: ${{ steps.changelog.outputs.notes }} files: ${{ steps.pack.outputs.tgz }} + target_commitish: ${{ github.sha }} fail_on_unmatched_files: true draft: false prerelease: false