Skip to content

Commit 54d549e

Browse files
committed
Update test-and-publish.yml
1 parent ae9c110 commit 54d549e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test-and-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: react-query tests
22

33
on:
44
push:
5+
branches:
6+
- 'master'
7+
- 'next'
8+
- '1.x'
59
pull_request:
610

711
jobs:
@@ -26,7 +30,7 @@ jobs:
2630
publish-module:
2731
name: 'Publish Module to NPM'
2832
needs: test
29-
if: contains(['refs/heads/master', 'refs/heads/next', 'refs/heads/1.x'], github.ref) #publish only when merged in master, not on PR
33+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/1.x' #publish only when merged in master, not on PR
3034
runs-on: ubuntu-latest
3135
steps:
3236
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)