[build] Only run JS workflow when there is a JS or dependency change
@@ -4,10 +4,25 @@ on:
push:
branches:
- trunk
+ paths:
+ - .bazel*
+ - .github/actions/**
+ - .github/workflows/javascript.yml
+ - javascript/**
+ - common/**
+ - package.json
+ - package-lock.json
pull_request:
branches:
- trunk
-
+ paths:
+ - .bazel*
+ - .github/actions/**
+ - .github/workflows/javascript.yml
+ - javascript/**
+ - common/**
+ - package.json
+ - package-lock.json
jobs:
node_tests:
runs-on: ubuntu-latest
