File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 - master
1212 - release
1313 - beta
14+ - v-*
1415 paths :
1516 - ' .release-plan.json'
1617
@@ -41,12 +42,12 @@ jobs:
4142 # pass --github-prerelease when we are only branch other than release
4243 # pass --publish-branch=<branch-name> when we are on a branch other than master/main
4344 run : |
44- if [ ${{ github.ref }} = "refs/heads/release" ]; then
45- pnpm release-plan publish --publish-branch=release
46- elif [ ${{ github.ref }} = "refs/heads/beta" ]; then
45+ if [ ${{ github.ref }} = "refs/heads/beta" ]; then
4746 pnpm release-plan publish --github-prerelease --publish-branch=beta
48- else
47+ elif [ ${{ github.ref }} = "refs/heads/main" ]; then
4948 pnpm release-plan publish --github-prerelease
49+ else
50+ pnpm release-plan publish --publish-branch=${{github.ref_name}}
5051 fi
5152 env :
5253 GITHUB_AUTH : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments