#!/bin/sh set -e if git diff --cached --name-only | grep -E '.(js|json)$'; then yarn install yarn run package exec git add dist/index.js fi