Skip to content

Commit 3fd45f2

Browse files
committed
feat: add git tag
1 parent 464fdc7 commit 3fd45f2

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,6 @@ jobs:
5454
5555
- name: Update version
5656
run: python scripts/update_version.py --next-version ${{ needs.get-next-version.outputs.new-release-version }}
57-
58-
- name: Commit version changes
59-
run: |
60-
git config --local user.email "[email protected]"
61-
git config --local user.name "GitHub Action"
62-
git add .
63-
git commit -m "chore(release): update version to ${{ needs.get-next-version.outputs.new-release-version }} [skip ci]"
64-
git push
65-
env:
66-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6757

6858
build-binaries:
6959
needs: update-version

.releaserc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
"changelogFile": "CHANGELOG.md"
1111
}
1212
],
13+
[
14+
"@semantic-release/git",
15+
{
16+
"assets": ["casbin_cli/__version__.py"],
17+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
18+
}
19+
],
1320
[
1421
"@semantic-release/github",
1522
{

0 commit comments

Comments
 (0)