Skip to content

Commit ad995ca

Browse files
authored
ci: refine release workflow path filters to include changesets (#547)
Improved GitHub workflow path filtering for releases This PR updates the release workflow to use a more explicit path filtering approach. Instead of using `paths-ignore`, it now uses a combination of include and exclude patterns to better control which files trigger the workflow: - Includes all files by default - Excludes website, example-flows, demo, and markdown files - Re-includes changeset markdown files (except the README) This approach provides more precise control over which files trigger the release workflow, ensuring changesets are properly processed.
1 parent 0cb5500 commit ad995ca

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ on:
44
push:
55
branches:
66
- main
7-
paths-ignore:
8-
- 'pkgs/website/**'
9-
- 'pkgs/example-flows/**'
10-
- 'apps/demo/**'
11-
- '**/*.md'
7+
paths:
8+
- '**' # Include all files
9+
- '!pkgs/website/**' # Exclude website
10+
- '!pkgs/example-flows/**' # Exclude example-flows
11+
- '!apps/demo/**' # Exclude demo
12+
- '!**/*.md' # Exclude all markdown
13+
- '.changeset/*.md' # Re-include changeset files
14+
- '!.changeset/README.md' # Exclude changeset README
1215
workflow_dispatch:
1316

1417
concurrency: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)