Skip to content

Commit

Permalink
ci(publish): checking the check variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tabcat committed Nov 25, 2024
1 parent f7eb1ad commit 31f1d4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ jobs:
run: |
echo "LOCAL_VERSION=$(pnpm pkg get version | tr -d '"')" >> $GITHUB_OUTPUT
echo "PUBLISHED_VERSION=$(npm view prollipop version 2>/dev/null || echo "")" >> $GITHUB_OUTPUT
echo "Local version: ${{ steps.check-version.outputs.LOCAL_VERSION }}"
echo "Published version: ${{ steps.check-version.outputs.PUBLISHED_VERSION }}"
echo $LOCAL_VERSION
echo $PUBLISHED_VERSION
cat $GITHUB_OUTPUT
- name: Publish to NPM
if: steps.check-version.outputs.LOCAL_VERSION != steps.check-version.outputs.PUBLISHED_VERSION
Expand Down

0 comments on commit 31f1d4b

Please sign in to comment.