Skip to content

Commit 7195a03

Browse files
committed
fix(CD): try to fix workflow triggering
1 parent 9f17909 commit 7195a03

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/cd.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: Node.js CD
22

33
on:
4-
push:
5-
branches: ['main']
4+
pull_request:
5+
branches:
6+
- main
7+
types: [closed]
68

79
jobs:
10+
if: ${{ github.event.pull_request.merged }}
811
publish-npm:
912
runs-on: ubuntu-latest
1013
steps:

0 commit comments

Comments
 (0)