/
actions
/
setup-ruby
Обзор
Документация
Войти
/
actions
/
setup-ruby
Код
Вики
Пакеты
0
Релизы
0
Аналитика
v1.320.0
pre-commit
8 строк
198 B
Benoit Daloze
Run pre-commit hook when changing yarn.lock
14 окт 2022, 14:41
14 окт 2022, 14:41
d240f61
Код
Авторство
О чём код?
#!/bin/sh set -e if [ "$(dirname "$0")" != ".git/hooks" ] || git diff --cached --name-only | grep -E '.(js|json)$|yarn.lock'; then yarn install yarn run package exec git add dist/index.js fi