Skip to content

pre-release: prepare 1.0.2 release #39

pre-release: prepare 1.0.2 release

pre-release: prepare 1.0.2 release #39

Workflow file for this run

name: linters
on:
pull_request:
paths:
- ".github/workflows/linters.yml"
- "src/**"
- ".eslintrc.js"
- "tsconfig.json"
- "tsconfig.module.json"
- "package.json"
- "package-lock.json"
jobs:
eslint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Set up Node.js v20
uses: actions/setup-node@v4
with:
node-version: '20.9.0'
registry-url: https://registry.npmjs.org
# Cache the node_modules directory
- name: Set up node_modules cache
uses: actions/cache@v2
id: node-modules-cache
with:
key: node-modules-cache-${{ hashFiles('**/package-lock.json') }}
path: '**/node_modules'
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: npm ci
- name: Lint with ESLint
run: npm run lint