chore(ci): reduce GitHub Actions spend#14511
Conversation
- web/identity/sdk: add cancel-in-progress concurrency so new commits on a PR cancel superseded in-flight runs (keyed so main deploys are never cancelled). - web: gate the Cloudflare deploy-preview behind an opt-in 'preview' label; most PRs don't need a live preview, and each is a build download + two wrangler deploys. - web/mobile: drop dead '.circleci/**' path filters (CircleCI is removed). Mobile macOS (macos-26) jobs are already main-only + version-gated, so no change there. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
|
Dependency limit exceeded — report not shown. This pull request scan exceeded the 10,000-dependency limit applied to this scan, so the results are incomplete and may be inaccurate. To avoid reporting false positives, Socket has not posted a report. Upgrade your plan to raise the dependency limit and get complete reports, or view the partial scan in the dashboard. Socket is always free for open source. If this is a non-commercial open source project, contact us to request a free Team account. |
Goal
Cut GitHub Actions spend across web/identity/sdk CI.
Changes
cancel-in-progresskeyed on the PR branch, so pushing new commits to a PR cancels the superseded in-flight run. Keyed as${{ github.head_ref || github.ref }}withcancel-in-progress: ${{ github.event_name == 'pull_request' }}so main deploys are never cancelled by a subsequent push.web-deploy-previewnow requires apreviewlabel on the PR. Most PRs don't need a live Cloudflare preview, and each one is a build download + twowranglerdeploys. Add thepreviewlabel to get a preview URL..circleci/**frompaths:— CircleCI is fully removed, so those entries never match.Not changed (already lean)
macos-26jobs (10× cost) already run only on push to main + when the app version changed, and mobile has nopull_requesttrigger at all — so macOS spend is already minimized. Left as-is.Estimated savings
Concurrency cancellation saves on every multi-push PR (web runs
6 ubuntu jobs per run); preview gating removes a deploy job from the majority of PRs. Rough estimate **$5–8/mo** of the ~$36/mo.The preview-label gate changes dev workflow (previews become opt-in). If the team prefers previews-by-default, say so and I'll drop that hunk — the concurrency + dead-path cleanups stand on their own.
🤖 Generated with Claude Code