We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9b11a8 commit 33bfd71Copy full SHA for 33bfd71
.github/workflows/release.js.yml
@@ -1,11 +1,15 @@
1
name: npm publish
2
-
3
on:
4
- push:
5
- branches: [ production ]
+ pull_request:
+ types: [ closed ]
+
6
+ # Enable running this workflow manually from the Actions tab
7
+ workflow_dispatch:
8
9
jobs:
10
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' }}
13
runs-on: ubuntu-latest
14
steps:
15
- uses: actions/checkout@v2
0 commit comments