Skip to content

Commit 3f2c982

Browse files
setup(workflow): narrow CI path filtering (#444)
1 parent c6ed600 commit 3f2c982

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,24 @@ on:
88
push:
99
branches: ["*"]
1010
paths:
11-
- "recipes/**"
12-
- "utils/**"
11+
- "recipes/**/*.js"
12+
- "recipes/**/*.ts"
13+
- "recipes/**/package.json"
14+
- "utils/**/*.js"
15+
- "utils/**/*.ts"
16+
- "utils/package.json"
1317
- "package.json"
1418
- "package-lock.json"
1519
- ".github/workflows/ci.yml"
1620
pull_request:
1721
branches: ["*"]
1822
paths:
19-
- "recipes/**"
20-
- "utils/**"
23+
- "recipes/**/*.js"
24+
- "recipes/**/*.ts"
25+
- "recipes/**/package.json"
26+
- "utils/**/*.js"
27+
- "utils/**/*.ts"
28+
- "utils/**/package.json"
2129
- "package.json"
2230
- "package-lock.json"
2331
- ".github/workflows/ci.yml"
@@ -35,6 +43,8 @@ jobs:
3543
name: Configure Node environment matrix
3644
runs-on: ubuntu-latest
3745

46+
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
47+
3848
outputs:
3949
latest: ${{ steps.set-matrix.outputs.requireds }}
4050
steps:

0 commit comments

Comments
 (0)