Skip to content

Commit 518d85c

Browse files
authored
ci: automate workflow triggering (#6)
Trigger only for changes inside the `.changeset` and `packages` folders.
1 parent 4d1cb08 commit 518d85c

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16+
paths:
17+
- ".changeset/**"
18+
- "packages/**"
1619
branches: [ "main" ]
1720
pull_request:
18-
# The branches below must be a subset of the branches above
21+
paths:
22+
- ".changeset/**"
23+
- "packages/**"
1924
branches: [ "main" ]
2025
schedule:
2126
- cron: '38 21 * * 6'

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Release
22

3-
on: workflow_dispatch
3+
on:
4+
push:
5+
paths:
6+
- ".changeset/**"
7+
- "packages/**"
8+
branches:
9+
- main
410

511
concurrency: ${{ github.workflow }}-${{ github.ref }}
612

0 commit comments

Comments
 (0)