Skip to content

Commit 44049b2

Browse files
committed
ci: trigger publish on any push to production, not only PR merges
1 parent c2dfb32 commit 44049b2

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: Publish to npm
22

33
on:
4-
pull_request:
5-
types: [closed]
4+
push:
65
branches:
76
- production
87

98
jobs:
9+
ci:
10+
uses: ./.github/workflows/ci.yml
11+
1012
publish:
11-
if: github.event.pull_request.merged == true
1213
needs: ci
1314
runs-on: ubuntu-latest
1415

@@ -56,9 +57,4 @@ jobs:
5657
with:
5758
tag_name: v${{ steps.pkg.outputs.version }}
5859
name: v${{ steps.pkg.outputs.version }}
59-
body: |
60-
Published from PR #${{ github.event.pull_request.number }}: ${{ github.event.pull_request.title }}
6160
generate_release_notes: true
62-
63-
ci:
64-
uses: ./.github/workflows/ci.yml

0 commit comments

Comments
 (0)