Skip to content

Commit c6ee082

Browse files
authored
Fix git commit and push (#65)
1 parent 605c45a commit c6ee082

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/prerelease.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ jobs:
5757

5858
# ---- BUMP VERSION ----
5959

60-
- name: Configure Git
61-
run: |
62-
git config --global user.email "${{ secrets.GH_EMAIL }}"
63-
git config --global user.name "${{ secrets.GH_USER }}"
64-
6560
- name: Bump RC version
6661
if: ${{ github.event.inputs.dry_run == 'false' }}
6762
working-directory: packages/interact
@@ -70,9 +65,15 @@ jobs:
7065
- name: Commit and push version bump
7166
if: ${{ github.event.inputs.dry_run == 'false' }}
7267
run: |
68+
git config user.email "${{ secrets.GH_EMAIL }}"
69+
git config user.name "${{ secrets.GH_USER }}"
7370
git add .
7471
git commit -m "chore: bump @wix/interact RC version [skip ci]"
75-
git push
72+
git push --follow-tags
73+
env:
74+
GH_EMAIL: ${{ secrets.GH_EMAIL }}
75+
GH_USER: ${{ secrets.GH_USER }}
76+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
7677

7778
# ---- PUBLISH WITH TRUSTED PUBLISHING ----
7879

0 commit comments

Comments
 (0)