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