ci: add ability to push changes
This commit is contained in:
parent
9911d19dfd
commit
c0c8a4c85c
|
@ -22,6 +22,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
if: github.actor != 'github-actions[bot]'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -69,6 +70,15 @@ jobs:
|
||||||
jq --arg v "$VERSION" '.version = $v' manifest.json > manifest_tmp.json
|
jq --arg v "$VERSION" '.version = $v' manifest.json > manifest_tmp.json
|
||||||
mv manifest_tmp.json manifest.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
|
- name: Build the project
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue