Skip to content

Commit

Permalink
Fix pushing commits back when publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymholt committed Jul 15, 2024
1 parent 115213a commit 06bfcc3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- name: Setup git repo
run: |
git config user.name $GITHUB_ACTOR
git config user.email gh-actions-${GITHUB_ACTOR}@github.com
git config user.email gh-actions-${GITHUB_ACTOR}@github.com
git remote add gh-origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
Expand All @@ -44,7 +45,7 @@ jobs:
run: |
git commit -am "New release: ${{ steps.bump-version.outputs.new-version}}"
git tag ${{ steps.bump-version.outputs.new-version}}
git push --tags
git push gh-origin HEAD:master --tags
- name: Create a Release
id: create-release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 06bfcc3

Please sign in to comment.