mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Run pre-commit hook when changing yarn.lock
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ "$(dirname "$0")" != ".git/hooks" ] || git diff --cached --name-only | grep -E '.(js|json)$'; then
|
if [ "$(dirname "$0")" != ".git/hooks" ] || git diff --cached --name-only | grep -E '.(js|json)$|yarn.lock'; then
|
||||||
yarn install
|
yarn install
|
||||||
yarn run package
|
yarn run package
|
||||||
exec git add dist/index.js
|
exec git add dist/index.js
|
||||||
|
|||||||
Reference in New Issue
Block a user