Skip to content

Commit 56b213d

Browse files
bmuenzenmeyerclaude
andcommitted
ci: serialize release runs and skip forks
- Add a concurrency group (cancel-in-progress: false) so overlapping pushes to main can't race the version PR push or the publish step - Guard the job with github.repository so forks don't attempt to publish Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent e7553c0 commit 56b213d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,17 @@ on:
1717
permissions:
1818
contents: read
1919

20+
# Serialize releases. `cancel-in-progress: false` so a mid-publish run is never
21+
# killed by a newer push.
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.ref }}
24+
cancel-in-progress: false
25+
2026
jobs:
2127
release:
2228
runs-on: ubuntu-latest
29+
# Never attempt to publish from forks (no trusted-publisher match / secrets).
30+
if: github.repository == 'nodejs/doc-kit'
2331
permissions:
2432
contents: write # commit the version bump, push the git tag, create the GitHub Release
2533
pull-requests: write # open/update the "Version Packages" PR

0 commit comments

Comments
 (0)