Skip to content

Commit 833f518

Browse files
committed
build: add beta builds
1 parent 8669fad commit 833f518

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: react-query tests
33
on:
44
push:
55
branches:
6-
- "master"
7-
- "next"
8-
- "1.x"
6+
- 'master'
7+
- 'next'
8+
- '1.x'
99
pull_request:
1010

1111
jobs:
1212
test:
13-
name: "Node ${{ matrix.node }}"
13+
name: 'Node ${{ matrix.node }}'
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
@@ -25,10 +25,10 @@ jobs:
2525
- run: yarn test:ci
2626

2727
publish-module:
28-
name: "Publish Module to NPM"
28+
name: 'Publish Module to NPM'
2929
needs: test
3030
# publish only when merged in master on original repo, not on PR
31-
if: github.repository == 'tannerlinsley/react-query' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/1.x')
31+
if: github.repository == 'tannerlinsley/react-query' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/1.x')
3232
runs-on: ubuntu-latest
3333
steps:
3434
- uses: actions/checkout@v2

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
"branches": [
3636
"1.x",
3737
"master",
38-
{
39-
"name": "next",
40-
"prerelease": true
41-
}
38+
"beta"
4239
]
4340
},
4441
"files": [

0 commit comments

Comments
 (0)