Skip to content

Commit

Permalink
fix: change to bump replace and bring back commit and tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
drodarie committed Jul 20, 2024
1 parent 8380cb0 commit df163d3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,19 @@ jobs:
oldv="${{ steps.semver.outputs.current }}"
newv="${{steps.semver.outputs.next}}"
# Bump the version, dropping the leading `v` with `${x:1}`
bump-my-version bump --current-version=${oldv:1} --new-version=${newv:1}
bump-my-version replace --current-version=${oldv:1} --new-version=${newv:1}
- name: Commit version change
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: 'docs: bump version: ${{ steps.semver.outputs.current }} → ${{ steps.semver.outputs.next }}'

- uses: rickstaa/action-create-tag@v1
id: "tag_create"
with:
tag: ${{ steps.semver.outputs.next }}
github_token: ${{ github.token }}

release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit df163d3

Please sign in to comment.