From 46d44a73c98c08c09f041258a502400494f6be0e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 30 Oct 2024 11:48:14 -0400 Subject: [PATCH] chore(ci): update release workflow trigger conditions - Add branch wildcard to workflow triggers - Include changeset-release and package.json in path filters - Add pull request trigger for closed events - Update concurrency settings with PR number --- .github/workflows/release.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d4fd83c..04eafb9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,13 +3,26 @@ name: Release on: push: branches: - - "develop" + - "**" paths: - '.changeset/**' + - '.changeset-release/**' + - 'package.json' tags: - '**' + pull_request: + types: + - closed + branches: + - '**' + paths: + - '.changeset/**' + - '.changeset-release/**' + - 'package.json' -concurrency: ${{ github.workflow }}-${{ github.ref }} +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true jobs: publish: