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β
16env:
17 NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
18 SERVER_PRESET: 'node-server'
19β
20permissions:
21 contents: write
22 id-token: write
23 pull-requests: write
24β
25jobs:
26 release:
27 name: Release
28 if: github.repository_owner == 'TanStack'
29 runs-on: ubuntu-latest
30 steps:
31 - name: Checkout
32 uses: actions/checkout@v6.0.1
33 with:
34 fetch-depth: 0
35 - name: Start Nx Agents
36 run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml"
37 - name: Setup Tools
38 uses: tanstack/config/.github/setup@main
39 - name: Run Tests
40 run: pnpm run test:ci --parallel=3
41 - name: Stop Nx Agents
42 if: ${{ always() }}
43 run: npx nx-cloud stop-all-agents
44 - name: Publish
45 run: |
46 git config --global user.name 'Tanner Linsley'
47 git config --global user.email 'tannerlinsley@users.noreply.github.com'
48 pnpm run cipublish
49 env:
50 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51 TAG: ${{ inputs.tag }}