ci: add ability to push changes

This commit is contained in:
ZackaryW 2024-09-09 09:38:03 -07:00
parent 9911d19dfd
commit c0c8a4c85c
1 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,7 @@ on:
jobs:
release:
if: github.actor != 'github-actions[bot]'
runs-on: ubuntu-latest
steps:
@ -69,6 +70,15 @@ jobs:
jq --arg v "$VERSION" '.version = $v' manifest.json > manifest_tmp.json
mv manifest_tmp.json manifest.json
- name: Commit and push changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add package.json manifest.json
git commit -m "Bump version to $VERSION"
git push
- name: Build the project
run: npm run build