mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-27 12:43:37 +00:00
chore: migrate husky
This commit is contained in:
parent
454dc436d7
commit
ed905f2c4e
4 changed files with 10 additions and 7 deletions
4
.husky/commit-msg
Executable file
4
.husky/commit-msg
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npx --no-install commitlint --edit $1
|
||||||
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npx --no-install lint-staged
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
hooks: {
|
|
||||||
'pre-commit': 'lint-staged',
|
|
||||||
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
@ -18,7 +18,8 @@
|
||||||
"release:standard-version": "standard-version --release-as",
|
"release:standard-version": "standard-version --release-as",
|
||||||
"release": "run-s build release:commit \"release:standard-version -- {1}\" --",
|
"release": "run-s build release:commit \"release:standard-version -- {1}\" --",
|
||||||
"build": "ncc build -o dist",
|
"build": "ncc build -o dist",
|
||||||
"start": "run-s build && node dist"
|
"start": "run-s build && node dist",
|
||||||
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue