name: Node.js CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4.1.5
      - uses: volta-cli/action@v4.0.0
      - run: npm install --no-audit
      - run: npm run lint --if-present
      - run: npm run build --if-present
        env:
          CI: true
