Skip to content

Commit ae9c110

Browse files
committed
Update test-and-publish.yml
1 parent 50329b3 commit ae9c110

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: react-query tests
22

33
on:
44
push:
5-
branches:
6-
- 'master'
7-
- 'next'
85
pull_request:
96

107
jobs:
@@ -29,7 +26,7 @@ jobs:
2926
publish-module:
3027
name: 'Publish Module to NPM'
3128
needs: test
32-
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/next' #publish only when merged in master, not on PR
29+
if: contains(['refs/heads/master', 'refs/heads/next', 'refs/heads/1.x'], github.ref) #publish only when merged in master, not on PR
3330
runs-on: ubuntu-latest
3431
steps:
3532
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)