Skip to content

Commit

Permalink
feat(init): run release:dry-run on post-commit (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Aug 8, 2020
1 parent bb2f205 commit e603390
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
"pre-commit": "lint-staged",
"post-commit": "npm run release:dry-run"
}
},
"lint-staged": {
Expand Down
2 changes: 2 additions & 0 deletions test/__snapshots__/init.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Object {
"husky": Object {
"hooks": Object {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"post-commit": "npm run release:dry-run",
"pre-commit": "lint-staged",
},
},
Expand Down Expand Up @@ -97,6 +98,7 @@ Object {
"husky": Object {
"hooks": Object {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"post-commit": "npm run release:dry-run",
"pre-commit": "lint-staged",
},
},
Expand Down

0 comments on commit e603390

Please sign in to comment.