Skip to content

Commit 21cb5a3

Browse files
authored
Merge pull request #228 from ember-cli/enable-patch-publish
Enable patch publish
2 parents 5628a74 + 198dae7 commit 21cb5a3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
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 }}

0 commit comments

Comments
 (0)