14 lines
429 B
Plaintext
Executable File
14 lines
429 B
Plaintext
Executable File
# Check if lockfile needs updating
|
|
if git diff --cached --name-only | grep -q "^package.json$"; then
|
|
echo "🔒 Updating lockfile..."
|
|
pnpm lock
|
|
git add pnpm-lock.yaml
|
|
fi
|
|
|
|
# Check if entry needs rebuilding (entry.ts, esbuild.config.js, or any .ts files)
|
|
if git diff --cached --name-only | grep -qE "^(entry\.ts|esbuild\.config\.js|.*\.ts)$"; then
|
|
echo "🔨 Building action..."
|
|
pnpm build
|
|
git add entry
|
|
fi
|