You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/test-and-publish.yml
+20-17Lines changed: 20 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -3,43 +3,46 @@ name: react-query tests
3
3
on:
4
4
push:
5
5
branches:
6
-
- 'master'
7
-
- 'next'
8
-
- '1.x'
6
+
- "master"
7
+
- "next"
8
+
- "1.x"
9
9
pull_request:
10
10
11
11
jobs:
12
12
test:
13
-
name: 'node ${{ matrix.node }} ${{ matrix.os }} '
14
-
runs-on: '${{ matrix.os }}'
13
+
name: "Node ${{ matrix.node }}"
14
+
runs-on: ubuntu-latest
15
15
strategy:
16
16
matrix:
17
-
os: [ubuntu-latest]
18
-
node: [14, 12, 10]
17
+
node: [10, 12, 14]
19
18
steps:
19
+
- uses: actions/checkout@v2
20
20
- uses: actions/setup-node@v1
21
21
with:
22
22
node-version: ${{ matrix.node }}
23
-
- uses: actions/checkout@v2
24
-
- run: npm i -g yarn
25
-
- run: yarn --frozen-lockfile
23
+
- name: Install dependencies
24
+
uses: bahmutov/npm-install@v1
26
25
- run: yarn test:ci
27
26
28
27
publish-module:
29
-
name: 'Publish Module to NPM'
28
+
name: "Publish Module to NPM"
30
29
needs: test
31
-
if: github.repository_owner == 'tannerlinsley' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/1.x') #publish only when merged in master on original repo, not on PR
30
+
# publish only when merged in master on original repo, not on PR
0 commit comments