Files
shockbot/.husky/pre-commit
T
2025-11-26 13:51:22 -05:00

13 lines
355 B
Plaintext
Executable File

# Ensure lockfile is up to date if package.json changed
if git diff --cached --name-only | grep -q "^package.json$"; then
echo "🔒 Updating lockfile..."
pnpm lock
# Build the action before committing
echo "🔨 Building action..."
pnpm build
# Add the built files and lockfile to the commit
git add entry pnpm-lock.yaml
fi