Skip to content

Commit

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

* Fix yml file
  • Loading branch information
t-hamano committed Mar 6, 2024
1 parent e675c5e commit b3a9cac
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 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 @@ -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'

- name: Npm install and build
run: |
Expand Down Expand Up @@ -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'

- 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 @@ -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'

- 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
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit b3a9cac

Please sign in to comment.