mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-14 13:55:20 +01:00
[Dev] Add lefthook command to update packages on checkout/merge (#6820)
* [Dev] Add lefthook command to update packages on checkout/merge * Modify post-checkout to only run on branch checkout Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com> --------- Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
This commit is contained in:
parent
8ae79450d4
commit
af2bad96f1
11
lefthook.yml
11
lefthook.yml
@ -18,4 +18,13 @@ pre-commit:
|
||||
post-merge:
|
||||
commands:
|
||||
update-submodules:
|
||||
run: pnpm update-submodules
|
||||
run: pnpm update-submodules
|
||||
update-packages:
|
||||
run: pnpm i
|
||||
|
||||
post-checkout:
|
||||
commands:
|
||||
update-packages:
|
||||
# cf https://git-scm.com/docs/githooks#_post_checkout:
|
||||
# The 3rd argument is 1 for branch checkouts and 0 for file checkouts.
|
||||
run: if test {3} -eq "1"; then pnpm i; fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user