Skip to content

Bump actions/checkout from 5.0.0 to 5.0.1 #2437

Bump actions/checkout from 5.0.0 to 5.0.1

Bump actions/checkout from 5.0.0 to 5.0.1 #2437

Workflow file for this run

name: JS Code Linting
on:
push:
branches:
- trunk
- 'release/**'
# Only run if JS/JSON/Lint/NVM files changed.
paths:
- '.github/workflows/js-lint.yml'
- '**.js'
- '**.json'
- '.eslint*'
- '.nvmrc'
- '.wp-env.json'
- '**/package.json'
- 'package-lock.json'
pull_request:
# Only run if JS/JSON/Lint/NVM files changed.
paths:
- '.github/workflows/js-lint.yml'
- '**.js'
- '**.json'
- '.eslint*'
- '.nvmrc'
- '.wp-env.json'
- '**/package.json'
- 'package-lock.json'
types:
- opened
- reopened
- synchronize
jobs:
js-lint:
name: JS Lint
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v5
- name: Setup Node.js (via .nvmrc)
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
with:
node-version-file: '.nvmrc'
cache: npm
- name: npm install
run: npm ci
- name: JS Lint
run: npm run lint-js
- name: TypeScript compile
run: npm run tsc