Skip to content

Commit 33bfd71

Browse files
committed
Tweak workflow config
1 parent b9b11a8 commit 33bfd71

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release.js.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: npm publish
2-
32
on:
4-
push:
5-
branches: [ production ]
3+
pull_request:
4+
types: [ closed ]
5+
6+
# Enable running this workflow manually from the Actions tab
7+
workflow_dispatch:
68

79
jobs:
810
publish:
11+
# Run this job on master when a release PR is merged
12+
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.head.ref == 'master' }}
913
runs-on: ubuntu-latest
1014
steps:
1115
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)