diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aa6b0a9ac..69a2a6a36 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,15 +34,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: ["4", "4.3.2", "6", "8", "10", "12"] + node_version: ["12", "14", "16", "18"] steps: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: node-version: ${{ matrix.node_version }} - - name: 'Install the latest @types/node that works' - if: ${{ matrix.node_version == '4' || matrix.node_version == '4.3.2' || matrix.node_version == '6' }} - run: npm install --save --save-exact @types/node@17.0.41 - name: "Install dependencies" run: npm install - name: "Test sources" diff --git a/cli/package.json b/cli/package.json index 32991eacb..9315338bc 100644 --- a/cli/package.json +++ b/cli/package.json @@ -7,6 +7,9 @@ "type": "git", "url": "https://github.com/protobufjs/protobuf.js.git" }, + "engines": { + "node": ">=12.0.0" + }, "license": "BSD-3-Clause", "main": "index.js", "types": "index.d.ts", diff --git a/package.json b/package.json index 363a558b7..fd3fe99e4 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,9 @@ "repository": "protobufjs/protobuf.js", "bugs": "https://github.com/protobufjs/protobuf.js/issues", "homepage": "https://protobufjs.github.io/protobuf.js/", + "engines": { + "node": ">=12.0.0" + }, "keywords": [ "protobuf", "protocol-buffers",