Open History to see the last commit
1name: Release
2
3on:
4 workflow_dispatch:
5 inputs:
6 tag:
7 description: override release tag
8 required: false
9 push:
10 branches: [main, alpha, beta]
11
12concurrency:
13 group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
14 cancel-in-progress: true
15
16permissions:
17 contents: write
18 id-token: write
19 pull-requests: write
20
21jobs:
22 release:
23 name: Release
24 if: github.repository_owner == 'TanStack'
25 runs-on: ubuntu-latest
26 steps:
27 - name: Checkout
28 uses: actions/checkout@v6.0.1
29 with:
30 fetch-depth: 0
31 - name: Setup Tools
32 uses: tanstack/config/.github/setup@main
33 - name: Build
34 run: pnpm build
35 - name: Test
36 run: pnpm test
37 - name: Publish
38 run: |
39 git config --global user.name 'Tanner Linsley'
40 git config --global user.email 'tannerlinsley@users.noreply.github.com'
41 pnpm run cipublish
42 env:
43 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44 TAG: ${{ inputs.tag }}