Skip to content

Commit

Permalink
Update to Node.js 20.x (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Mar 8, 2024
1 parent 8bb39de commit 88128ce
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 @@ -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: |
Expand Down Expand Up @@ -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: |
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 @@ -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: |
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 @@ -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",
Expand Down

0 comments on commit 88128ce

Please sign in to comment.