From f67273cd66b90a09ffc54e3d2c18bdef49b8d832 Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Wed, 6 Mar 2024 22:12:25 +0900 Subject: [PATCH] Update to Node.js 20.x --- .github/workflows/run-test-and-deploy.yml | 13 +++++++------ .github/workflows/run-test.yml | 7 ++++--- .nvmrc | 2 +- package.json | 6 +++--- 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/run-test-and-deploy.yml b/.github/workflows/run-test-and-deploy.yml index 07e264c..4be9c40 100644 --- a/.github/workflows/run-test-and-deploy.yml +++ b/.github/workflows/run-test-and-deploy.yml @@ -26,12 +26,13 @@ jobs: name: PHP ${{ matrix.php }} / ${{ matrix.wp }} Test steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - - name: Use Node.js 16.x + - name: Use desired version of Node.js uses: actions/setup-node@v3 with: - node-version: '16' + node-version-file: '.nvmrc' '16' - name: Npm install and build run: | @@ -65,12 +66,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@main + uses: actions/checkout@v3 - - name: Use Node.js 16.x + - name: Use desired version of Node.js uses: actions/setup-node@v3 with: - node-version: '16' + node-version-file: '.nvmrc' '16' - name: Npm install and build run: | diff --git a/.github/workflows/run-test.yml b/.github/workflows/run-test.yml index 9bc7614..8fe25ac 100644 --- a/.github/workflows/run-test.yml +++ b/.github/workflows/run-test.yml @@ -34,12 +34,13 @@ jobs: name: PHP ${{ matrix.php }} / ${{ matrix.wp }} Test steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - - name: Use Node.js 16.x + - name: Use desired version of Node.js uses: actions/setup-node@v3 with: - node-version: '16' + node-version-file: '.nvmrc' '16' - name: Npm install and build run: | diff --git a/.nvmrc b/.nvmrc index b6a7d89..209e3ef 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16 +20 diff --git a/package.json b/package.json index c8eac94..3bec49f 100644 --- a/package.json +++ b/package.json @@ -16,11 +16,11 @@ "url": "https://github.com/t-hamano/enable-responsive-image/issues" }, "engines": { - "node": ">=16.0.0", - "npm": ">=8.0.0" + "node": ">=20.0.0", + "npm": ">=10.0.0" }, "volta": { - "node": "16.18.0", + "node": "20.11.1", "npm": "8.19.2" }, "devDependencies": {