Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

ci(sdk): add concurrency group to cancel superseded PR runs (#4853)

Chirag Singhal488a2642914f
diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.yml
index c8beb914c..f9611ebf7 100644
--- a/.github/workflows/sdk.yml
+++ b/.github/workflows/sdk.yml
@@ -19,6 +19,13 @@ on:
- ".github/workflows/sdk.yml"
workflow_dispatch:
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.sha || github.ref }}
+ # Same rule as ci.yml / style.yml / test-frontend.yml — cancel superseded
+ # PR runs (saves minutes on rapid re-pushes); main pushes use per-commit
+ # groups so they don't queue behind stale commits.
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
env:
DEBUG: napi:*
MACOSX_DEPLOYMENT_TARGET: "11.0"