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 #!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run bump-version echo "🔄 Version wird automatisch erhöht (bumpVersion.js)..."
git add ./config/appVersion.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 // /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", "name": "nodemap",
"version": "1.1.266", "version": "1.1.268",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "nodemap", "name": "nodemap",
"version": "1.1.266", "version": "1.1.268",
"dependencies": { "dependencies": {
"@emotion/react": "^11.13.3", "@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0", "@emotion/styled": "^11.13.0",

View File

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