From aff124467fbe2b1cb41e50954f71e1f5ce7e9dfb Mon Sep 17 00:00:00 2001 From: Robert Kozik Date: Wed, 7 Feb 2024 20:32:34 +0100 Subject: [PATCH] Create commit after yarn version call inside publish workflow (#155) --- .github/workflows/publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b12da29e..0c87f364 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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