Skip to content

Commit d635dcd

Browse files
committed
fix(workflows): update NPM publishing trigger to pull request merges
- Changed the trigger for the NPM publishing workflow to activate on closed pull requests that are merged from specific branches, enhancing the release process.
1 parent 63c10a8 commit d635dcd

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/publish-npm.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: Publish to NPM
22

33
on:
4-
push:
5-
tags:
6-
- 'v*'
4+
pull_request:
5+
types: [closed]
6+
branches:
7+
- main
78

89
jobs:
910
publish:
11+
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release-please--')
1012
uses: sendo-labs/reusable-workflows/.github/workflows/[email protected]
1113
with:
1214
bun-version: 'latest'

0 commit comments

Comments
 (0)