From 3a4803b675f09bc710674e08c9c70eb2407f912a Mon Sep 17 00:00:00 2001 From: Bruce Wang Date: Fri, 1 Aug 2025 21:04:23 +0800 Subject: [PATCH] fix: release sync git tag (#8755) --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33b1529b40..d6581095e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,6 +39,13 @@ jobs: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT fi + - name: Set package.json version + shell: bash + run: | + TAG="${{ steps.get-tag.outputs.tag }}" + VERSION="${TAG#v}" + npm version "$VERSION" --no-git-tag-version --allow-same-version + - name: Install Node.js uses: actions/setup-node@v4 with: