Skip to content

Commit

Permalink
chore: add pre-push git hook
Browse files Browse the repository at this point in the history
  • Loading branch information
younho9 committed Nov 26, 2021
1 parent 61de1ac commit 7cb6044
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn git:pre-push
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"git:commit-msg": "commitlint --edit",
"git:install-hooks": "husky install",
"git:pre-commit": "lint-staged",
"git:pre-push": "yarn test && yarn build",
"lint": "xo",
"prepare": "yarn git:install-hooks",
"release": "npx np",
Expand Down

0 comments on commit 7cb6044

Please sign in to comment.