Skip to content

Commit e800586

Browse files
committed
fix(ci): use changesets published output instead of commit message
Match eden-cli pattern for triggering builds automatically when changesets publishes a release.
1 parent 6ca5d1c commit e800586

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
release:
1616
name: Handle release 🦋
1717
runs-on: ubuntu-latest
18+
outputs:
19+
published: ${{ steps.changesets.outputs.published }}
1820
steps:
1921
- uses: actions/checkout@v4
2022
- uses: oven-sh/setup-bun@v2
@@ -33,7 +35,7 @@ jobs:
3335
build:
3436
name: Build ${{ matrix.target }}
3537
needs: release
36-
if: "${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && contains(github.event.head_commit.message, 'ci(changesets): version packages')) }}"
38+
if: needs.release.outputs.published == 'true' || github.event_name == 'workflow_dispatch'
3739
strategy:
3840
matrix:
3941
include:
@@ -78,8 +80,8 @@ jobs:
7880

7981
publish:
8082
name: Create GitHub Release
81-
needs: build
82-
if: "${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && contains(github.event.head_commit.message, 'ci(changesets): version packages')) }}"
83+
needs: [release, build]
84+
if: needs.release.outputs.published == 'true' || github.event_name == 'workflow_dispatch'
8385
runs-on: ubuntu-latest
8486
steps:
8587
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)