diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 8a859afc..15cf70fa 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node-version: [14.x, 16.x] + node-version: [14, 16, latest] steps: - uses: actions/checkout@v3 @@ -23,6 +23,8 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + - if: matrix.node-version == 14 + run: npm install --global npm@7 - run: npm ci - run: npm test - run: npm run test:dist diff --git a/package.json b/package.json index ab820c87..55509a58 100644 --- a/package.json +++ b/package.json @@ -95,6 +95,7 @@ "typescript": "^5.0.3" }, "engines": { - "node": ">= 14" + "node": ">= 14", + "npm": ">= 7" } }