mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Only recompile if a .js or .json file was changed
This commit is contained in:
+6
-3
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/sh
|
||||
set -e
|
||||
yarn install
|
||||
yarn run package
|
||||
exec git add dist/index.js
|
||||
|
||||
if git diff --cached --name-only | grep -E '.(js|json)$'; then
|
||||
yarn install
|
||||
yarn run package
|
||||
exec git add dist/index.js
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user