Skip to content

Commit 9acacef

Browse files
committed
fix: also publish release to major branch
1 parent 8b81484 commit 9acacef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release-on-merge-to-main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@ jobs:
2525
@semantic-release/changelog
2626
@semantic-release/git
2727
@semantic-release/github
28+
- name: Push updates to branch for major version
29+
if: steps.semantic.outputs.new_release_published == 'true'
30+
run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}"
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)