Skip to content

Commit

Permalink
fix ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKhanj committed Sep 23, 2023
1 parent 3415c06 commit 4cf09d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,16 @@ jobs:
- name: Compare versions
id: compare-versions
run: |
echo "should-publish=$([[ $VERSION > $LATEST ]] && echo -n 'true' || echo -n 'false')" >> $GITHUB_OUTPUT
version=${{ steps.get-version.version }}
latest=${{ steps.get-npm-version.latest }}
echo $version
echo $latest
echo "should-publish=$([[ $version > $latest ]] && echo -n 'true' || echo -n 'false')"
echo "should-publish=$([[ $version > $latest ]] && echo -n 'true' || echo -n 'false')" >> $GITHUB_OUTPUT
- name: Publish to npm
if: steps.compare-versions.outputs.should-publish == 'true'
if: steps.compare-versions.outputs.should_publish == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: |
Expand Down

0 comments on commit 4cf09d6

Please sign in to comment.