user="giteaAdmin"

mail="gitea@local.domain"
This commit is contained in:
miwr 2025-04-08 12:46:12 +02:00
parent 164d29a69b
commit d601f743dd
2 changed files with 10 additions and 0 deletions

View file

@ -46,6 +46,8 @@ jobs:
npm run lint
- name: Update version
run: |
user="giteaAdmin"
mail="gitea@local.domain"
chmod +x update-version.sh
./update-version.sh patch
- name: Build and push

View file

@ -14,3 +14,11 @@ echo "New version: $new_version"
# Update package.json
jq ".version = \"$new_version\"" package.json > temp.json && mv temp.json package.json
# Optional: Commit and tag
git config --global user.email ${email}
git config --global user.name ${user}
git add package.json
git commit -m "Bump version to $new_version"
git tag -a "v$new_version" -m "Release version $new_version"
git push main HEAD --tags