From 0833f8f2de4aa5a79f959d12e8a63895526cca3a Mon Sep 17 00:00:00 2001 From: Paul Orffer Date: Sun, 27 Oct 2024 18:23:07 +0200 Subject: [PATCH] fix: realease workflow latest tag --- .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 2efb6058..0a5183ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,8 @@ jobs: - name: Check if version is higher id: check-version run: | - if node -pe "const semver = require('semver'); semver.gt('${{ env.version }}', '${{ steps.get-latest-tag.outputs.tag }}')"; then + latest_tag="${{ steps.get-latest-tag.outputs.tag }}" + if node -pe "const semver = require('semver'); semver.gt('${{ env.version }}', '${latest_tag}')"; then echo "is_higher_version=true" >> $GITHUB_ENV else echo "is_higher_version=false" >> $GITHUB_ENV