mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
build: Check package-lock.json in post-merge, too
This commit is contained in:
parent
2611f4fe79
commit
80db6e7297
1 changed files with 5 additions and 3 deletions
|
@ -5,8 +5,10 @@
|
|||
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
|
||||
|
||||
|
||||
check_run() {
|
||||
echo "$changed_files" | grep --quiet "$1" && eval "$2"
|
||||
file_changed() {
|
||||
echo "$changed_files" | grep --quiet "$1"
|
||||
}
|
||||
|
||||
check_run package.json "npm install"
|
||||
if file_changed package.json || file_changed package-lock.json; then
|
||||
npm install
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue