Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

ci.yml

36 lines1.0 KB

1name: ci
2concurrency:
3 group: publish-${{ github.github.base_ref }}
4 cancel-in-progress: true
5on:
6 workflow_dispatch:
7 inputs:
8 tag:
9 description: override release tag
10 required: false
11 push:
12jobs:
13 test-and-publish:
14 if: github.repository == 'TanStack/query' && github.event_name != 'pull_request'
15 name: 'Test & Publish'
16 runs-on: ubuntu-latest
17 steps:
18 - uses: actions/checkout@v2
19 with:
20 fetch-depth: '0'
21 - uses: actions/setup-node@v2
22 with:
23 node-version: 16.14.2
24 registry-url: https://registry.npmjs.org/
25 cache: 'npm'
26 - run: |
27 npm i
28 git config --global user.name 'Tanner Linsley'
29 git config --global user.email 'tannerlinsley@users.noreply.github.com'
30 npm run cipublish
31 env:
32 GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
33 GH_TOKEN: ${{ secrets.GH_TOKEN }}
34 NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36 TAG: ${{ inputs.tag }}