From e5e60a1d3b30157062d7a1d9fae27163ed4e82ea Mon Sep 17 00:00:00 2001 From: Maximilian Antoni Date: Mon, 29 Jan 2024 09:52:05 +0100 Subject: [PATCH] Drop node 14, add node 20 --- .github/workflows/ci.yml | 20 +++++++++----------- package.json | 2 +- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f65d3c..a51f230 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,28 +9,26 @@ jobs: strategy: matrix: - node-version: ['14.x', '16.x', '18.x'] + node-version: ['16.x', '18.x', '20.x'] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: Cache modules - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} - restore-keys: ${{ runner.os }}-node- + cache: 'npm' - name: Install run: npm ci - name: Lint - if: matrix.node-version == '18.x' + if: matrix.node-version == '20.x' run: npm run lint + - name: Types + if: matrix.node-version == '20.x' + run: node_modules/.bin/tsc - name: Prettier - if: matrix.node-version == '18.x' + if: matrix.node-version == '20.x' run: npm run prettier:check - name: Test run: npm test diff --git a/package.json b/package.json index 9d66f55..e1fc4e2 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Fail with an Error object and a conventional code property", "main": "lib/fail.js", "engines": { - "node": ">=14.0.0" + "node": ">=16" }, "scripts": { "lint": "eslint .",