From 88128ce111db89658793f6ce21b1527d2569de5f Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Fri, 8 Mar 2024 10:41:19 +0900 Subject: [PATCH] Update to Node.js 20.x (#99) --- .github/workflows/run-test-and-deploy.yml | 13 +++++++------ .github/workflows/run-test.yml | 7 ++++--- .nvmrc | 2 +- package.json | 8 ++++---- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/run-test-and-deploy.yml b/.github/workflows/run-test-and-deploy.yml index 4f8e15e..57275ea 100644 --- a/.github/workflows/run-test-and-deploy.yml +++ b/.github/workflows/run-test-and-deploy.yml @@ -40,12 +40,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' - name: Npm install and build run: | @@ -78,12 +79,12 @@ jobs: needs: [test] 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' - name: Npm install and build run: | diff --git a/.github/workflows/run-test.yml b/.github/workflows/run-test.yml index f820726..c7fcd1f 100644 --- a/.github/workflows/run-test.yml +++ b/.github/workflows/run-test.yml @@ -43,12 +43,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' - 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 0229d1f..1300f89 100644 --- a/package.json +++ b/package.json @@ -17,12 +17,12 @@ "url": "https://github.com/t-hamano/custom-html-block-extension/issues" }, "engines": { - "node": ">=16.0.0", - "npm": ">=8.0.0" + "node": ">=20.0.0", + "npm": ">=10.0.0" }, "volta": { - "node": "16.18.0", - "npm": "8.19.2" + "node": "20.11.1", + "npm": "10.5.0" }, "dependencies": { "@wordpress/icons": "^9.36.0",