Skip to content

Commit cc3cd85

Browse files
patconclaude
andcommitted
fix: scope CI concurrency groups to prevent cross-branch cancellation
Storybook runs are now grouped by workflow+ref so PR and main runs don't interfere. Deploy workflow uses a shared `pages` group with cancel-in-progress so rapid main pushes cancel stale deploys but PR runs (which never trigger the deploy workflow) cannot affect main. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0ce3e93 commit cc3cd85

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/deploy-gh-pages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- main
77
workflow_dispatch:
88

9+
concurrency:
10+
group: pages
11+
cancel-in-progress: true
12+
913
jobs:
1014
build:
1115
runs-on: ubuntu-latest

.github/workflows/storybook.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: "Storybook"
22

33
on: push
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
chromatic:
711
name: Run Chromatic

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@
2727
- Renamed `analyzePaintedClusters``analyzeLabeledGroups` in the package (neutral terminology; the app adapter preserves backward compat internally).
2828

2929
### Fixed
30+
31+
- CI workflow concurrency groups: `deploy-gh-pages.yml` now uses `group: pages` with `cancel-in-progress: true` so rapid main-branch pushes cancel stale deploys without being affected by PR branch runs (which never trigger this workflow). `storybook.yaml` now uses `group: ${{ github.workflow }}-${{ github.ref }}` with `cancel-in-progress: true` so PR and main branch Chromatic runs are fully isolated from each other.

0 commit comments

Comments
 (0)