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