Skip to content

Commit 980d219

Browse files
committed
chore(ci): skip build workflow for non-code changes
Skip linting, building, and testing when only non-code files change: - Documentation (*.md, docs/) - Assets (assets/, schemas/) - GitHub templates (.github/ISSUE_TEMPLATE/) - IDE/editor config (.idea/, .claude/) - Git config (.gitignore) - Commit lint config (.commitlintrc.yml, package.json, package-lock.json) - LICENSE Commit and PR title linting still runs via commit-lint.yml.
1 parent 7736a98 commit 980d219

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,34 @@ name: Build & Test
33
on:
44
push:
55
branches: [ main ]
6+
paths-ignore:
7+
- '**.md'
8+
- 'docs/**'
9+
- 'assets/**'
10+
- 'schemas/**'
11+
- '.github/ISSUE_TEMPLATE/**'
12+
- '.idea/**'
13+
- '.claude/**'
14+
- '.gitignore'
15+
- '.commitlintrc.yml'
16+
- 'package.json'
17+
- 'package-lock.json'
18+
- 'LICENSE'
619
pull_request:
720
branches: [ main ]
21+
paths-ignore:
22+
- '**.md'
23+
- 'docs/**'
24+
- 'assets/**'
25+
- 'schemas/**'
26+
- '.github/ISSUE_TEMPLATE/**'
27+
- '.idea/**'
28+
- '.claude/**'
29+
- '.gitignore'
30+
- '.commitlintrc.yml'
31+
- 'package.json'
32+
- 'package-lock.json'
33+
- 'LICENSE'
834

935
permissions:
1036
contents: read

0 commit comments

Comments
 (0)