We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dce08d9 commit b8b30e2Copy full SHA for b8b30e2
…b/workflows/release-on-merge-to-main.yml .github/workflows/release-on-merge.yml.github/workflows/release-on-merge-to-main.yml renamed to .github/workflows/release-on-merge.yml
@@ -1,8 +1,12 @@
1
-name: Release on Merge to Main
+name: Release on Merge
2
on:
3
push:
4
branches:
5
- main
6
+ - next
7
+ - next-major
8
+ - alpha
9
+ - beta
10
jobs:
11
release:
12
runs-on: ubuntu-18.04
@@ -26,7 +30,9 @@ jobs:
26
30
@semantic-release/git
27
31
@semantic-release/github
28
32
- name: Push updates to branch for major version
29
- if: steps.semantic.outputs.new_release_published == 'true'
33
+ if: |
34
+ steps.semantic.outputs.new_release_published == 'true' &&
35
+ steps.semantic.outputs.new_release_channel == 'undefined'
36
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}}"
37
env:
38
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments