Skip to content

ci: update node version in GitHub Actions to 16 and above #137

ci: update node version in GitHub Actions to 16 and above

ci: update node version in GitHub Actions to 16 and above #137

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18, lts/*]
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: "npm"
- run: npm ci
- run: npm test
- run: npm run build
- run: npm prune --production