From 343a6ebc3ec2bfedfef0b45a64d7fe88a759a873 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Sun, 26 Jan 2025 23:09:15 +0100 Subject: [PATCH] node 22 (#17) --- .github/workflows/ci.yml | 2 +- .github/workflows/publish.yml | 2 +- index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32407bc..ec6441f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [22.x] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dad4956..95e11fb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@master with: - node-version: 18.0.0 + node-version: 22.0.0 - id: publish uses: JS-DevTools/npm-publish@v1 with: diff --git a/index.js b/index.js index d7e88cf..c790894 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ if (typeof process !== 'undefined' && parseInt(process.versions.node.split('.')[0]) < 18) { console.error('Your node version is currently', process.versions.node) - console.error('Please update it to a version >= 18.x.x from https://nodejs.org/') + console.error('Please update it to a version >= 22.x.x from https://nodejs.org/') process.exit(1) }