Skip to content

Send post ID of queried object or first post in loop in URL Metric storage request to schedule page cache validation #1511

Send post ID of queried object or first post in loop in URL Metric storage request to schedule page cache validation

Send post ID of queried object or first post in loop in URL Metric storage request to schedule page cache validation #1511

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/[email protected]
- uses: actions/checkout@v4
- name: Setup Node.js (via .nvmrc)
uses: actions/setup-node@v4
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