diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 42864a5..ee7c5c7 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -12,10 +12,10 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Use Node.js 18.x + - name: Use Node.js 20.x uses: actions/setup-node@v4 with: - node-version: "18.x" + node-version: "20.x" registry-url: "https://registry.npmjs.org" - run: npm ci diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4e5b7a..6d9c5f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-22.04, ubuntu-24.04, macos-13, macos-14, macos-15] - node: [18, 20, 22] + node: [20, 22, 24] runs-on: ${{ matrix.os }} steps: diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..4fd0219 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 68c22f4..44c3463 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,6 +35,9 @@ "prettier": "^3.3.2", "ts-jest": "^29.1.5", "typescript": "^5.1.6" + }, + "engines": { + "node": ">=20 <25" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index 00d04c7..0a6bd50 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,9 @@ "bugs": { "url": "https://github.com/openzim/node-libzim/issues" }, + "engines": { + "node": ">=20 <25" + }, "homepage": "https://github.com/openzim/node-libzim#readme", "gypfile": true, "dependencies": {