Skip to content

feat: add linter

feat: add linter #3

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]
- run: npm ci
- run: npm run build:production
- uses: actions/upload-artifact@v3
with:
name: real-shot-pdf
path: ${{ format('real-shot-pdf-v{0}.zip', steps.package-version.outputs.current-version) }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run lint