27 lines
473 B
YAML
27 lines
473 B
YAML
name: Lint code
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}-lint-js
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
NPM_GITHUB_TOKEN: ${{ secrets.NPM_GITHUB_PAT }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "lts/*"
|
|
cache: "npm"
|
|
- run: npm ci
|
|
- run: npm run lint
|