Skip to content

Commit 21829d1

Browse files
committed
fix: automate commit of package.json changes after release
1 parent 202d5cf commit 21829d1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ jobs:
3838
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3939
run: npx semantic-release
4040

41+
- name: Commit changes from semantic-release
42+
if: success()
43+
run: |
44+
git config --global user.name 'github-actions[bot]'
45+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
46+
git add .
47+
git commit -m "chore: update package.json for release [skip ci]" || echo "No changes to commit"
48+
git push origin main
49+
4150
- name: Sync dev branch with main
4251
if: success()
4352
run: |

0 commit comments

Comments
 (0)