Skip to content

Commit

Permalink
Update to Node.js 20.x (#53)
Browse files Browse the repository at this point in the history
* Update to Node.js 20.x

* Fix node deprecated error

* Fix GitHub Actions
  • Loading branch information
t-hamano authored Mar 6, 2024
1 parent a64b61a commit 43c07a6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/run-test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ jobs:
runs-on: ubuntu-latest

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: |
Expand All @@ -40,12 +41,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'

- name: Npm install and build
run: |
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ jobs:
runs-on: ubuntu-latest

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: |
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
20
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"url": "https://github.com/t-hamano/richtext-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"
},
"devDependencies": {
"@wordpress/base-styles": "4.38.0",
Expand Down

0 comments on commit 43c07a6

Please sign in to comment.