Skip to content

Commit

Permalink
fix: check if there are /dist changes to commit
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics committed Sep 25, 2024
1 parent 8a2cdd3 commit baaa3b0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
pnpm preflight
git add dist/
git commit -m "chore: bump dist"

# Check if there are any changes in the dist/ directory
if [ -n "$(git status dist/ --porcelain)" ]; then
git add dist/
git commit -m "chore: update dist"
else
echo "No changes in dist/ to commit."
fi

0 comments on commit baaa3b0

Please sign in to comment.