docs: Re-organise for new docs layout (v3) #3212
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: react-query tests | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'next' | |
- 'beta' | |
- '1.x' | |
- '2.x' | |
pull_request: | |
jobs: | |
test: | |
name: 'Node ${{ matrix.node }}' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [12, 14, 16] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
- run: yarn test:ci | |
- run: yarn test:size | |
if: matrix.node == '16' | |
env: | |
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
publish-module: | |
name: 'Publish Module to NPM' | |
needs: test | |
# publish only when merged in main on original repo, not on PR | |
if: github.repository == 'TanStack/query' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/1.x' || github.ref == 'refs/heads/2.x') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
- run: yarn build | |
- run: npx semantic-release@17 | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | |
GH_TOKEN: ${{secrets.GH_TOKEN}} |