Skip to content

Commit 5cac4bf

Browse files
author
Peter Bengtsson
authored
don't lint JS if no JS changed in PRs (#22756)
* don't lint JS if no JS changed in PRs Part of #1202 * one more extension
1 parent 623d6ff commit 5cac4bf

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/js-lint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ on:
1010
branches:
1111
- main
1212
pull_request:
13+
paths:
14+
- '**.js'
15+
- '**.mjs'
16+
- '**.ts'
17+
- '**.tsx'
18+
# In case something like eslint or tsc or prettier upgrades
19+
- 'package-lock.json'
20+
# Ultimately, for debugging this workflow itself
21+
- .github/workflows/js-lint.yml
1322

1423
jobs:
1524
lint:

0 commit comments

Comments
 (0)