Skip to content

Commit

Permalink
Merge branch 'main' of github.com:BuidlerDAO/n6-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Dendi committed Jan 14, 2025
2 parents d3232f2 + b6619f2 commit 52a91c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,12 @@ jobs:

- name: Check if version changed
id: version_check
run: |
git fetch origin main
PREVIOUS_VERSION=$(git show origin/main:package.json | jq -r .version)
CURRENT_VERSION=$(jq -r .version package.json)
echo "previous_version=$PREVIOUS_VERSION" >> $GITHUB_OUTPUT
echo "current_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
if [ "$PREVIOUS_VERSION" == "$CURRENT_VERSION" ]; then
echo "Version has not changed. Exiting."
exit 0
fi
uses: EndBug/version-check@v2
with:
diff-search: true

- name: Publish to npm
if: ${{ steps.version_check.outputs.current_version != steps.version_check.outputs.previous_version }}
if: steps.version_check.outputs.changed == 'true'
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@
"tailwindcss": "^3.4.16",
"zustand": "^5.0.2"
}
}
}

0 comments on commit 52a91c7

Please sign in to comment.