Skip to content

Commit

Permalink
Fix issue with pre-release check in CI (#3404)
Browse files Browse the repository at this point in the history
* Fix issue with pre-release check

* Add space just in case.
  • Loading branch information
HarelM authored Nov 24, 2023
1 parent 10af384 commit 2fa9195
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit 2fa9195

Please sign in to comment.