Skip to content

Commit ae14935

Browse files
ci: don't interrupt publishing
1 parent 7afdc9a commit ae14935

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ on:
99
push:
1010
branches: [main, alpha, beta]
1111

12-
concurrency:
13-
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
14-
cancel-in-progress: true
15-
1612
env:
1713
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
1814
SERVER_PRESET: 'node-server'
@@ -22,10 +18,13 @@ permissions:
2218
id-token: write
2319

2420
jobs:
25-
test-and-publish:
26-
name: Test & Publish
21+
test:
22+
name: Build & Test
2723
if: github.repository_owner == 'TanStack'
2824
runs-on: ubuntu-latest
25+
concurrency:
26+
group: ${{ github.workflow }}-test-${{ github.event.number || github.ref }}
27+
cancel-in-progress: true
2928
steps:
3029
- name: Checkout
3130
uses: actions/[email protected]
@@ -40,6 +39,16 @@ jobs:
4039
- name: Stop Nx Agents
4140
if: ${{ always() }}
4241
run: npx nx-cloud stop-all-agents
42+
43+
publish:
44+
name: Publish
45+
if: github.repository_owner == 'TanStack'
46+
runs-on: ubuntu-latest
47+
needs: test
48+
concurrency:
49+
group: ${{ github.workflow }}-publish-${{ github.event.number || github.ref }}
50+
cancel-in-progress: false
51+
steps:
4352
- name: Publish
4453
run: |
4554
git config --global user.name 'Tanner Linsley'

0 commit comments

Comments
 (0)