Skip to content

Commit

Permalink
check for changes
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Oct 1, 2024
1 parent ce92aed commit 38e51e3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ jobs:
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add package.json
git commit -m "Update package.json with new nearfs cid [skip ci]"
git push origin HEAD:main
# Check if there are changes to commit
if ! git diff --cached --quiet; then
git commit -m "Update package.json with new nearfs cid [skip ci]"
git push origin HEAD:main
else
echo "No changes to commit."
fi
- name: Publish to NPM
run: npm publish
env:
Expand Down

0 comments on commit 38e51e3

Please sign in to comment.