Skip to content

Commit a6da8db

Browse files
committed
make it automatic
1 parent 16d556d commit a6da8db

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Publish Package
22

33
on:
4-
release:
5-
types: [published]
4+
pull_request:
5+
types: [closed]
66
workflow_dispatch:
77

88
permissions:
@@ -11,6 +11,10 @@ permissions:
1111

1212
jobs:
1313
publish:
14+
if: >
15+
github.event_name == 'workflow_dispatch' ||
16+
(github.event.pull_request.merged == true &&
17+
startsWith(github.head_ref, 'release-please'))
1418
runs-on: ubuntu-latest
1519
steps:
1620
- uses: actions/checkout@v6

0 commit comments

Comments
 (0)