Skip to content

Commit 6ed8967

Browse files
committed
chore: 🤖 auto install
1 parent 2b579e8 commit 6ed8967

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

lefthook.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,25 @@ commit-msg:
4242
commands:
4343
commitlint:
4444
run: pnpm commitlint --edit {1} --config commitlint.config.js
45+
46+
post-merge:
47+
follow: true
48+
commands:
49+
check-pnpm-lock:
50+
run: |
51+
if git diff --quiet HEAD^ HEAD -- pnpm-lock.yaml; then
52+
echo pnpm-lock.yaml 已更新,运行 pnpm install ...
53+
pnpm install
54+
fi
55+
56+
post-checkout:
57+
follow: true
58+
commands:
59+
check-pnpm-lock:
60+
run: |
61+
if [ {3} -eq 1 ]; then
62+
if git diff --quiet {1} {2} -- pnpm-lock.yaml; then
63+
echo pnpm-lock.yaml 已更新,运行 pnpm install ...
64+
pnpm install
65+
fi
66+
fi

0 commit comments

Comments
 (0)