Skip to content

chore(deps): update dependency npm-pkg-lint to v3 #246

chore(deps): update dependency npm-pkg-lint to v3

chore(deps): update dependency npm-pkg-lint to v3 #246

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# note: keep in sync with if-statement on npm-pkg-lint below
node-version: [16.x, 18.x, 20.x, 21.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
npm ci
- name: ESLint
run: npm run eslint
- name: Prettier
run: npm run prettier:check
- name: Mocha
run: npm exec mocha -- --exit "test/**/*.spec.mjs"
- name: Build
run: npm run --if-present build
- name: npm-pkg-lint
if: matrix.node-version == '20.x'
run: |
npm pack
npm exec npm-pkg-lint -- --ignore-node-version=16