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

View File

@@ -1,2 +1,2 @@
// /config/appVersion
export const APP_VERSION = "1.1.267";
export const APP_VERSION = "1.1.268";

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "nodemap",
"version": "1.1.266",
"version": "1.1.268",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "nodemap",
"version": "1.1.266",
"version": "1.1.268",
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",

View File

@@ -1,6 +1,6 @@
{
"name": "nodemap",
"version": "1.1.266",
"version": "1.1.268",
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",