ci: prevent more than one release from occurring at same time

This commit is contained in:
Daniel Roe 2024-06-29 22:31:50 +01:00
parent 56660cbdd7
commit 71705550ff
No known key found for this signature in database
GPG Key ID: CBC814C393D93268
3 changed files with 9 additions and 1 deletions

View File

@ -256,6 +256,8 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
build-release:
concurrency:
group: release
permissions:
id-token: write
if: |
@ -297,6 +299,8 @@ jobs:
NPM_CONFIG_PROVENANCE: true
release-pr:
concurrency:
group: release
permissions:
id-token: write
pull-requests: write

View File

@ -14,6 +14,8 @@ permissions:
jobs:
release-pr:
if: github.repository == 'nuxt/nuxt' && github.event.issue.pull_request && github.event.comment.body == '/trigger release'
concurrency:
group: release
permissions:
id-token: write
pull-requests: write

View File

@ -12,6 +12,8 @@ permissions: {}
jobs:
release:
if: github.repository == 'nuxt/nuxt' && (startsWith(github.event.head_commit.message, 'v3.') || startsWith(github.event.head_commit.message, 'v4.'))
concurrency:
group: release
permissions:
id-token: write
runs-on: ubuntu-latest