From f7985687e2adfc6c74a82c9f31ff226df862fd04 Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Thu, 2 May 2024 08:00:45 -0400 Subject: [PATCH] build: update to node 20 --- .github/workflows/ci.yml | 6 +++--- .nvmrc | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9ef172..82348bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: uses: actions/setup-node@v3 with: node-version-file: '.nvmrc' - - run: npm i -g npm@8.5.5 + - run: npm i -g npm@10.5.0 - run: npm ci - run: npm run standards test: @@ -23,7 +23,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [ 12, 14, 16, 'lts/*', 'latest' ] + node-version: [ 16, 20, 'lts/*', 'latest' ] steps: - uses: actions/checkout@v3 - @@ -31,7 +31,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - run: npm i -g npm@8.5.5 + - run: npm i -g npm@10.5.0 - run: npm ci # Reinstall the dependencies to ensure they install with the current version of node - run: npm test - name: Coveralls diff --git a/.nvmrc b/.nvmrc index 99cdd80..8783404 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16.15.0 +20.12.2 diff --git a/package.json b/package.json index ff3cc54..ae5836c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "module": "./dist/esm/index", "scripts": { "prepare": "grunt build", - "test:node-version": "check-node-version --npm 8.5.5 --print", + "test:node-version": "check-node-version --npm 10.5.0 --print", "test": "npm run test:node-version && TS_NODE_PROJECT='tests/tsconfig.json' TS_NODE_FILES=true nyc mocha --opts ./.mocha.opts", "eslint": "eslint '{,!(node_modules|dist)/**/}*.{js,ts}'", "markdownlint": "markdownlint -c .markdownlint.json -i CHANGELOG.md '{,!(node_modules)/**/}*.md'",