Skip to content

Commit 79e66bb

Browse files
committed
added commit push
1 parent 9e4b897 commit 79e66bb

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@ jobs:
3535
sed -i "s/^version = .*/version = \"$VERSION\"/" pyproject.toml
3636
cat pyproject.toml | grep version
3737
38+
- name: Commit version bump
39+
run: |
40+
git config user.name "github-actions[bot]"
41+
git config user.email "github-actions[bot]@users.noreply.github.com"
42+
git add package.json package-lock.json
43+
git commit -m "chore: bump version to ${{ steps.get_version.outputs.version }}" || echo "No changes to commit"
44+
45+
- name: Push changes
46+
uses: ad-m/github-push-action@master
47+
with:
48+
github_token: ${{ secrets.GITHUB_TOKEN }}
49+
branch: main
50+
tags: false
51+
3852
- name: Install build dependencies
3953
run: |
4054
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)