Skip to content

Commit

Permalink
ci(publish): capitalized env variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
tabcat committed Nov 25, 2024
1 parent 426ba39 commit f7eb1ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
- name: Check latest version
id: check-version
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=$(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 }}"
- name: Publish to NPM
if: steps.check-version.outputs.local_version != steps.check-version.outputs.published_version
if: steps.check-version.outputs.LOCAL_VERSION != steps.check-version.outputs.PUBLISHED_VERSION
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit f7eb1ad

Please sign in to comment.