diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index 8e82268..2fac850 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'yarn' @@ -24,11 +24,14 @@ jobs: - prepare strategy: matrix: - node-version: [16.x, 18.x, 20.x] + node-version: + - 18.x + - 20.x + - 22.x steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'yarn' @@ -47,15 +50,12 @@ jobs: runs-on: ubuntu-latest needs: - prepare - strategy: - matrix: - node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - name: Set up Node.js + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' cache: 'yarn' - run: yarn --immutable --immutable-cache - run: yarn lint @@ -80,11 +80,14 @@ jobs: - prepare strategy: matrix: - node-version: [16.x, 18.x, 20.x] + node-version: + - 18.x + - 20.x + - 22.x steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'yarn' diff --git a/package.json b/package.json index 2dc1248..99103eb 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "@types/ethereumjs-tx": "^1.0.1", "@types/hdkey": "^2.0.1", "@types/jest": "^28.1.6", - "@types/node": "^16.18.57", + "@types/node": "~18.18.14", "@types/sinon": "^9.0.10", "@types/w3c-web-usb": "^1.0.6", "@typescript-eslint/eslint-plugin": "^5.43.0", @@ -84,7 +84,7 @@ }, "packageManager": "yarn@3.3.1", "engines": { - "node": "^16.20 || ^18.16 || >=20" + "node": "^18.18 || ^20.14 || >=22" }, "publishConfig": { "access": "public",