From 4230176ce444844bd3a4daba644794ffa477d9d9 Mon Sep 17 00:00:00 2001 From: "lzyme.dev@gmail.com" Date: Tue, 1 Sep 2026 18:54:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dgithub=20action=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E7=89=88=E6=9C=AC=E5=8F=B7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fae30a1..09b53f7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,11 +27,15 @@ jobs: - name: Build run: npm run build + - name: Get version + id: version + run: echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT + - name: Upload to Release uses: softprops/action-gh-release@v2 with: - tag_name: v${{ github.run_number }} - name: Release v${{ github.run_number }} + tag_name: v${{ steps.version.outputs.VERSION }} + name: Release v${{ steps.version.outputs.VERSION }} files: dist/jhs-enhance.user.js draft: false prerelease: false