user="giteaAdmin"
mail="gitea@local.domain"
This commit is contained in:
parent
164d29a69b
commit
d601f743dd
2 changed files with 10 additions and 0 deletions
|
@ -46,6 +46,8 @@ jobs:
|
||||||
npm run lint
|
npm run lint
|
||||||
- name: Update version
|
- name: Update version
|
||||||
run: |
|
run: |
|
||||||
|
user="giteaAdmin"
|
||||||
|
mail="gitea@local.domain"
|
||||||
chmod +x update-version.sh
|
chmod +x update-version.sh
|
||||||
./update-version.sh patch
|
./update-version.sh patch
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
|
|
|
@ -14,3 +14,11 @@ echo "New version: $new_version"
|
||||||
|
|
||||||
# Update package.json
|
# Update package.json
|
||||||
jq ".version = \"$new_version\"" package.json > temp.json && mv temp.json 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
|
Loading…
Reference in a new issue