Skip to content

Commit

Permalink
chore(ci): update release workflow concurrency and triggers
Browse files Browse the repository at this point in the history
- Add package.json to workflow triggers
- Update concurrency settings with PR number/SHA
- Add .changeset-release to path triggers
- Extend branch trigger coverage to all branches
- Improve concurrent job handling with cancel-in-progress

This expands the workflow's scope while preventing redundant runs.
  • Loading branch information
pcfreak30 committed Oct 30, 2024
1 parent dc15fdb commit 4d581da
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ name: Release
on:
push:
branches:
- "develop"
- "**"
paths:
- '.changeset/**'
- '.changeset-release/**'
- 'package.json'
tags:
- '**'
pull_request:
Expand All @@ -15,8 +17,12 @@ on:
- '**'
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:
Expand Down

0 comments on commit 4d581da

Please sign in to comment.