Skip to content

Configuring and Publishing the Repository as a Package to NPM #1

Configuring and Publishing the Repository as a Package to NPM

Configuring and Publishing the Repository as a Package to NPM #1

Workflow file for this run

name: Node.js Test
on:
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Audit
run: npm run audit --audit-level=moderate
- name: Lint
run: npm run lint
- name: Run tests
run: npm run test
- name: Check for outdated dependencies
run: npm run outdated