From 8d3261fc668ab2d7fcaceed434402ae72753dc4e Mon Sep 17 00:00:00 2001 From: dprevost-perso Date: Sun, 20 Sep 2026 22:17:34 -0400 Subject: [PATCH] Only 1 concurrent pipeline --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 257c76b..1dc7698 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,15 +8,18 @@ on: - v[0-9]+.[0-9]+.[0-9]+* pull_request: +# one run per ref; newer push cancels the older one +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: strategy: fail-fast: false matrix: os: [macos-latest, ubuntu-latest, windows-latest] - # full Node.js matrix (https://github.com/nodejs/release#release-schedule) - # only runs on push (merge to main / tags); PRs only test Node 24 to keep - # feedback fast + # full matrix on push; PRs test Node 24 only, for fast feedback node: ${{ github.event_name == 'pull_request' && fromJson('[24]') || fromJson('[20, 22, 24, 26]') }} runs-on: ${{ matrix.os }} steps: