fix: release sync git tag (#8755)

This commit is contained in:
Bruce Wang 2025-08-01 21:04:23 +08:00 committed by GitHub
parent 2ced1b2d71
commit 3a4803b675
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: