chore: automate release checks
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
if [[ -f package.json && -f scripts/release-sync.cjs && -f scripts/release-verify.cjs ]]; then
|
||||
npm run --silent release:sync >/dev/null
|
||||
if [[ -d public ]]; then
|
||||
while IFS= read -r -d '' file; do
|
||||
git add -- "$file"
|
||||
done < <(find public -type f -name '*.html' -print0 2>/dev/null)
|
||||
fi
|
||||
npm run --silent release:verify
|
||||
fi
|
||||
Reference in New Issue
Block a user