From 577a6e102440042881a6a77664d323a9d34e1d29 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 25 May 2026 12:16:15 +0100 Subject: [PATCH] docs: add sample concurrency config to prevent races --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 1c79878..59fec18 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,9 @@ jobs: && startsWith(github.event.pull_request.head.ref, 'release/v') && github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest + concurrency: + group: release-${{ github.event.pull_request.number }} + cancel-in-progress: false permissions: contents: write # push the `vX.Y.Z` tag and create the GitHub release actions: write # `gh workflow run release.yml --ref vX.Y.Z` chained dispatch @@ -81,6 +84,9 @@ jobs: publish: if: github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest + concurrency: + group: publish-${{ github.ref }} + cancel-in-progress: false permissions: contents: read # checkout the tag id-token: write # OIDC claim for npm trusted publisher -- 2.51.2