From 664d9ab225222d9742e1f6440be973957a429e34 Mon Sep 17 00:00:00 2001 From: dawkaka Date: Mon, 15 Jul 2024 21:13:35 +0000 Subject: [PATCH] checkout branch --- .github/workflows/release_package.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release_package.yml b/.github/workflows/release_package.yml index b608f5d..b49615f 100644 --- a/.github/workflows/release_package.yml +++ b/.github/workflows/release_package.yml @@ -46,6 +46,17 @@ jobs: - name: Bump version run: npm version ${{ env.NEW_VERSION }} --no-git-tag-version + - name: Create and checkout temporary branch + run: | + git branch temp-branch + git checkout temp-branch + + # Commit changes + - name: Commit CHANGELOG.md and package.json changes and create tag + run: | + git add "package.json" + git commit -m "chore: release ${{ env.NEW_VERSION }}" + # Push repository changes - name: Push changes to repository env: