Skip to content

fix: ts error in v1.3 branch #519

fix: ts error in v1.3 branch

fix: ts error in v1.3 branch #519

Workflow file for this run

name: Linting
on:
push:
branches:
- main
- v1.*
pull_request:
branches:
- '**'
env:
CI: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Cache npm cache
uses: actions/cache@v2
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install latest npm
run: npm install --global npm@latest
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint