message: lint changed files only when there is a change
diff: @@ -22,11 +22,22 @@ jobs:
  uses: actions/checkout@v2
  with:
  fetch-depth: 1
  +
  - name: Install Node.js
  uses: actions/setup-node@v1
  +
  - name: Install Packages
  - run: npm install
  + run: npm ci
  +
  - name: Lint
  - run: npm run -s lint
  + run: |
  + CHANGED_TS=$(git --no-pager diff --name-only ..origin/master | grep '/.*\.ts$' | xargs ls -d 2>/dev/null | paste -sd " " -)
  + if [[ -z $(sed -e 's/[[:space:]]*$//' <<<${CHANGED_TS}) ]] || [[ "$CHANGED_TS" == "." ]];
  + then
  + npm run -s lint
  + else
  + node node_modules/eslint/bin/eslint $CHANGED_TS
  + fi
  +
  - name: Typecheck
  run: npx tsc --noEmit
  