Skip to content

Commit

Permalink
feat: pre-push 내 build 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
suhwan2004 committed Oct 15, 2024
1 parent bbdd984 commit 8306048
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
echo "🐶 Running git push"
echo "🐶 Starting git push"

FORBIDDEN_HTTPS_URL="https://github.com/CollaBu/pennyway-client-webview-next.git"
FORBIDDEN_SSH_URL="[email protected]:CollaBu/pennyway-client-webview-next.git"
Expand All @@ -21,4 +21,13 @@ then
fi
fi

echo "🐶 Running pnpm build"
if ! pnpm build
then
echo "🐶 Build failed. Push aborted."
exit 1
fi


echo "🐶 Success Pre-Push!"
exit 0

0 comments on commit 8306048

Please sign in to comment.