ci: Fix husky post-merge

This commit is contained in:
peaceiris 2021-02-10 14:15:02 +09:00
parent 32f5b71c41
commit 4f6ebdd767
No known key found for this signature in database
GPG key ID: 5868468A8EBA64EC
2 changed files with 2 additions and 3 deletions

View file

@ -1,2 +1,2 @@
npm run update-deps npm ci
git remote prune origin git remote prune origin

View file

@ -16,8 +16,7 @@
"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", "release": "standard-version"
"update-deps": "(git diff 'HEAD@{1}' --name-only | grep 'package-lock.json' > /dev/null) && npm ci || :"
}, },
"lint-staged": { "lint-staged": {
"{src,__tests__}/**/*.ts": [ "{src,__tests__}/**/*.ts": [