From 065570e0570f04ab2a8f72914224f4459b1acf4e Mon Sep 17 00:00:00 2001 From: Robert Kozik Date: Wed, 7 Feb 2024 20:19:29 +0100 Subject: [PATCH] create commit after yarn version call inside pubish workflow --- .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