feat: Version wird vor jedem Commit automatisch erhöht (husky pre-commit)

This commit is contained in:
ISA
2025-06-17 12:13:17 +02:00
parent 73ad21e9d0
commit b4c5aca8c9
4 changed files with 14 additions and 6 deletions

View File

@@ -1,4 +1,12 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run bump-version
git add ./config/appVersion.js
echo "🔄 Version wird automatisch erhöht (bumpVersion.js)..."
# Version automatisch erhöhen
node scripts/bumpVersion.js
# Automatisch relevante Dateien zum Commit hinzufügen
git add package.json package-lock.json config/appVersion.js
# Fortsetzen mit dem Commit