From 2fa9195662c2bb29b2e99df31995815b072ef017 Mon Sep 17 00:00:00 2001 From: Harel M Date: Fri, 24 Nov 2023 23:28:32 +0200 Subject: [PATCH] Fix issue with pre-release check in CI (#3404) * Fix issue with pre-release check * Add space just in case. --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5f9d0588b..2131c17c5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,8 +25,15 @@ jobs: - name: Check if version changed id: check - uses: EndBug/version-check@v2 - + run: | + latestNpmPackageVersion=$( npm view maplibre-gl version ) + currentVersion=$( node -e "console.log(require('./package.json').version)" ) + if [ "$latestNpmPackageVersion" == "$currentVersion" ]; then + echo "changed=false" >> $GITHUB_OUTPUT + else + echo "changed=true" >> $GITHUB_OUTPUT + fi + outputs: publish: ${{ steps.check.outputs.changed }}