Skip to content

Commit

Permalink
Create commit after yarn version call inside publish workflow (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertKozik authored Feb 7, 2024
1 parent 90bfc27 commit aff1244
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ jobs:
- name: Set new version in GitHub ENV
run: echo "NEW_VERSION=$(jq '.version' package.json)" >> $GITHUB_ENV

- name: Commit version bump
run: git commit -am "Bump version to ${{ env.NEW_VERSION }}"

- name: Tag version bump
run: git tag ${{ env.NEW_VERSION }}

- name: Push branch and publish tags
run: git push --set-upstream origin ${{ env.BRANCH_NAME }} && git push --tags

Expand Down

0 comments on commit aff1244

Please sign in to comment.