From 5df812176742f5dce873c7c01bedf1680b728fe7 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 28 Sep 2023 11:14:33 +0100 Subject: [PATCH] test against Node.js v18 & v20 --- .github/workflows/ci.yml | 2 +- package-lock.json | 3 +++ package.json | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 254311c..028770b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - node: ['16', '18'] + node: ['18', '20'] steps: - uses: actions/checkout@v3 diff --git a/package-lock.json b/package-lock.json index ba1d19f..b0bf3a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,6 +22,9 @@ "react": "^18.2.0", "release-it": "^16.2.1" }, + "engines": { + "node": ">=18" + }, "peerDependencies": { "gatsby": "^4.0.0 || ^5.0.0", "react": ">=17.0.0", diff --git a/package.json b/package.json index f71f442..1ad755e 100644 --- a/package.json +++ b/package.json @@ -46,5 +46,8 @@ "repository": "github:kremalicious/gatsby-plugin-matomo", "bugs": { "url": "https://github.com/kremalicious/gatsby-plugin-matomo/issues" + }, + "engines": { + "node": ">=18" } }