Compare commits

...

5 Commits

Author SHA1 Message Date
52125397bf chore: release v1.10.2
🔖 Version 1.10.2

###  Features
- Auto-push releases with --follow-tags
2025-11-29 17:47:55 +01:00
aea21622f7 feat: Auto-push releases with --follow-tags 2025-11-29 17:47:01 +01:00
bd10f6533e chore: release v1.10.1
🔖 Version 1.10.1

### 🐛 Fixes
- Update Footer.js version to 1.10.0 and fix sync-version.sh regex

### ♻️ Refactoring
- Use package.json version directly in Footer instead of env variables
2025-11-29 17:34:25 +01:00
bf26472ea3 refactor: Use package.json version directly in Footer instead of env variables 2025-11-29 17:14:24 +01:00
ec3d7ee4d0 fix: Update Footer.js version to 1.10.0 and fix sync-version.sh regex 2025-11-29 17:02:40 +01:00
10 changed files with 38 additions and 24 deletions

View File

@ -1,5 +1,20 @@
# Changelog
## [1.10.2] - 2025-11-29
### ✨ Features
- Auto-push releases with --follow-tags
## [1.10.1] - 2025-11-29
### 🐛 Fixes
- Update Footer.js version to 1.10.0 and fix sync-version.sh regex
### ♻️ Refactoring
- Use package.json version directly in Footer instead of env variables
## [1.10.0] - 2025-11-29
### ✨ Features

View File

@ -2,7 +2,7 @@
"openapi": "3.0.0",
"info": {
"title": "Project Image Uploader API",
"version": "1.10.0",
"version": "1.10.2",
"description": "Auto-generated OpenAPI spec with correct mount prefixes"
},
"servers": [

View File

@ -1,6 +1,6 @@
{
"name": "backend",
"version": "1.10.0",
"version": "1.10.2",
"description": "",
"main": "src/index.js",
"scripts": {

View File

@ -16,7 +16,7 @@ const endpointsFiles = routerMappings.map(r => path.join(routesDir, r.file));
const doc = {
info: {
title: 'Project Image Uploader API',
version: '1.10.0',
version: '1.10.2',
description: 'Auto-generated OpenAPI spec with correct mount prefixes'
},
host: 'localhost:5001',

View File

@ -1,12 +1,12 @@
{
"name": "frontend",
"version": "1.10.0",
"version": "1.10.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "frontend",
"version": "1.10.0",
"version": "1.10.2",
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",

View File

@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "1.10.0",
"version": "1.10.2",
"private": true,
"dependencies": {
"@dnd-kit/core": "^6.3.1",

View File

@ -1,9 +1,10 @@
import React from 'react'
import packageJson from '../../../package.json'
import './Css/Footer.css'
function Footer() {
const version = window._env_?.APP_VERSION || '1.1.0';
const version = packageJson.version;
return (
<footer>

4
package-lock.json generated
View File

@ -13,7 +13,7 @@
]
},
"backend": {
"version": "1.10.0",
"version": "1.10.2",
"license": "ISC",
"dependencies": {
"bcryptjs": "^3.0.3",
@ -10068,7 +10068,7 @@
}
},
"frontend": {
"version": "1.10.0",
"version": "1.10.2",
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",

View File

@ -186,7 +186,15 @@ git tag -a "v${NEW_VERSION}" -m "Release v${NEW_VERSION}"
echo -e "${GREEN}✓ Commit & Tag erstellt${NC}"
echo ""
echo -e "${BLUE}Nächste Schritte:${NC}"
echo " git push && git push --tags"
echo -e "${BLUE}Pushe zu Remote...${NC}"
# Push mit --follow-tags (pusht Commit + zugehörige Tags)
if git push --follow-tags; then
echo -e "${GREEN}✓ Erfolgreich gepusht${NC}"
else
echo -e "${RED}⚠ Push fehlgeschlagen - bitte manuell pushen:${NC}"
echo " git push --follow-tags"
fi
echo ""
echo -e "${GREEN}✅ Release v${NEW_VERSION} fertig!${NC}"

View File

@ -19,31 +19,21 @@ cd backend
npm version $FRONTEND_VERSION --no-git-tag-version --allow-same-version
cd ..
# 2. Footer.js Fallback aktualisieren
echo " ├─ Frontend Footer.js Fallback..."
sed -i "s/window\._env_\?\.APP_VERSION || '[0-9]\+\.[0-9]\+\.[0-9]\+'/window._env_?.APP_VERSION || '${FRONTEND_VERSION}'/" frontend/src/Components/ComponentUtils/Footer.js
# 3. OpenAPI generate-openapi.js aktualisieren
# 2. OpenAPI generate-openapi.js aktualisieren
echo " ├─ Backend OpenAPI Spec..."
sed -i "s/version: '[0-9]\+\.[0-9]\+\.[0-9]\+'/version: '${FRONTEND_VERSION}'/" backend/src/generate-openapi.js
# 4. Docker Compose Files (optional, falls vorhanden)
# 2. Docker Compose Files (optional, falls vorhanden)
if [ -f "docker/prod/docker-compose.yml" ]; then
echo " ├─ Docker Compose (prod)..."
sed -i "s/image: hobbyhimmel\/image-uploader-frontend:[0-9]\+\.[0-9]\+\.[0-9]\+/image: hobbyhimmel\/image-uploader-frontend:${FRONTEND_VERSION}/" docker/prod/docker-compose.yml || true
sed -i "s/image: hobbyhimmel\/image-uploader-backend:[0-9]\+\.[0-9]\+\.[0-9]\+/image: hobbyhimmel\/image-uploader-backend:${FRONTEND_VERSION}/" docker/prod/docker-compose.yml || true
fi
# 5. OpenAPI Spec neu generieren
# 3. OpenAPI Spec neu generieren
echo " ├─ Regeneriere OpenAPI Spec..."
cd backend
npm run generate-openapi > /dev/null 2>&1
cd ..
echo -e "${GREEN}✓ Alle Versionen auf ${FRONTEND_VERSION} synchronisiert!${NC}"
echo ""
echo "Nächste Schritte:"
echo " 1. CHANGELOG.md manuell aktualisieren"
echo " 2. Git commit: git add -A && git commit -m 'chore: bump version to v${FRONTEND_VERSION}'"
echo " 3. Git tag: git tag v${FRONTEND_VERSION}"
echo " 4. Push: git push && git push --tags"