mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2025-05-05 06:45:28 +08:00
chore: Add task to autorun npm ci [skip ci] (#128)
This commit is contained in:
parent
7dc067063b
commit
4331a62207
@ -10,12 +10,15 @@
|
|||||||
"build": "ncc build ./src/index.ts -o lib",
|
"build": "ncc build ./src/index.ts -o lib",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"format": "prettier --write **/*.ts",
|
"format": "prettier --write **/*.ts",
|
||||||
"format:check": "prettier --check **/*.ts"
|
"format:check": "prettier --check **/*.ts",
|
||||||
|
"release": "standard-version",
|
||||||
|
"update-deps": "(git diff 'HEAD@{1}' --name-only | grep 'package-lock.json' > /dev/null) && npm ci || :"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"skipCI": true,
|
"skipCI": true,
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"pre-commit": "lint-staged"
|
"pre-commit": "lint-staged",
|
||||||
|
"post-merge": "npm run update-deps; git remote prune origin"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
|
Loading…
Reference in New Issue
Block a user