Skip to content

Commit

Permalink
chore(githubActions): add .husky with gh actions
Browse files Browse the repository at this point in the history
- add pre-push hook
- add pre-commit hook
- add commit message hook

(#1)
  • Loading branch information
mari1912 authored and aelnonym committed May 26, 2023
1 parent a0261c2 commit d2a5e56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged -c scripts/lint-staged-config.mjs
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn pre-push

0 comments on commit d2a5e56

Please sign in to comment.