diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f9f16ab..c2837fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,11 +8,11 @@ concurrency: jobs: checks: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 10 strategy: matrix: - node_version: [16, 18, 20] + node_version: [ 18, 20, 22 ] steps: - uses: actions/checkout@v4 - uses: aboutbits/github-actions-node/setup-and-install@v2 @@ -26,11 +26,11 @@ jobs: shell: bash test: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 10 strategy: matrix: - node_version: [16, 18, 20] + node_version: [ 18, 20, 22 ] steps: - uses: actions/checkout@v4 - uses: aboutbits/github-actions-node/setup-and-install@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 122bd18..2ea73c6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,11 +6,11 @@ on: - 'v*' env: - NODE_VERSION: 20 + NODE_VERSION: 22 jobs: build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 5 steps: - uses: actions/checkout@v4 diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..8fdd954 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +22 \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 1b58660..2162070 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,8 +34,8 @@ "typescript": "^5.4.3" }, "engines": { - "node": ">=16", - "npm": ">=8" + "node": ">=18", + "npm": ">=10" }, "peerDependencies": { "react": "^16.0.0 || ^17.0.0 || ^18.0.0" diff --git a/package.json b/package.json index 38151c5..498e316 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,8 @@ "dist/**/*" ], "engines": { - "npm": ">=8", - "node": ">=16" + "npm": ">=10", + "node": ">=18" }, "scripts": { "build": "rimraf dist && npm run build:esm && npm run build:cjs",