Merge pull request #599 from WordPress/dependabot/npm_and_yarn/webpac… #246
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint JS | |
on: | |
push: | |
paths: | |
- '**.js' | |
- 'package-lock.json' | |
branches: | |
- trunk | |
pull_request: | |
paths: | |
- '**.js' | |
- 'package-lock.json' | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: JS Lint | |
run: npm run lint-js |