mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 22:44:20 +02:00
9 lines
198 B
Bash
Executable File
9 lines
198 B
Bash
Executable File
#!/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
|