Skip to content

Commit

Permalink
update from node 16 to 20 in package, nvm, and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Jan 29, 2024
1 parent 6e9f4ed commit 4a66b6f
Show file tree
Hide file tree
Showing 9 changed files with 635 additions and 517 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cypress-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ jobs:
echo "DIST=${PWD}/dist" >> $GITHUB_OUTPUT
echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT
- name: Use Node.js 16.x
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
cache: 'npm'

- name: Get Composer cache directory
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cypress-tests-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
mkdir dist
echo "DIST=${PWD}/dist" >> $GITHUB_OUTPUT
echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT
- name: Use Node.js 16.x
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
cache: 'npm'

- name: Get Composer cache directory
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
echo "DIST=${PWD}/dist" >> $GITHUB_OUTPUT
echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT
- name: Use Node.js 16.x
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x

- name: Get npm cache directory
id: npm-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upload-artifact-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
echo "DIST=${PWD}/dist" >> $GITHUB_OUTPUT
echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT
- name: Use Node.js 16.x
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x

- name: Get npm cache directory
id: npm-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upload-asset-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ jobs:
echo "DIST=${PWD}/dist" >> $GITHUB_OUTPUT
echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT
- name: Use Node.js 16.x
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x

- name: Get npm cache directory
id: npm-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wp-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20.x

- name: Log debug information
run: |
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v20
1,112 changes: 613 additions & 499 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,35 @@
"Micah Wood (https://wpscholar.com)",
"William Earnhardt (https://wearnhardt.com)"
],
"engines": {
"node": ">=20",
"npm": ">=10"
},
"dependencies": {
"@heroicons/react": "^2.1.1",
"@newfold-labs/wp-module-ecommerce": "^1.3.19",
"@newfold-labs/wp-module-runtime": "^1.0.7",
"@newfold/ui-component-library": "^1.0.1",
"@reduxjs/toolkit": "^2.0.1",
"@wordpress/compose": "^6.26.0",
"@reduxjs/toolkit": "^2.1.0",
"@wordpress/compose": "^6.27.0",
"@wordpress/dom-ready": "^3.49.0",
"@wordpress/element": "^5.26.0",
"@wordpress/i18n": "^4.49.0",
"@wordpress/element": "^5.27.0",
"@wordpress/i18n": "^4.50.0",
"@wordpress/icons": "^9.40.0",
"classnames": "^2.5.1",
"jquery": "^3.7.1",
"lodash": "^4.17.21",
"react": "^18.2.0",
"react-error-boundary": "^4.0.12",
"react-router-dom": "^6.21.3",
"react-use": "^17.4.3"
"react-use": "^17.5.0"
},
"devDependencies": {
"@automattic/babel-plugin-preserve-i18n": "^1.0.0",
"@tailwindcss/forms": "^0.5.7",
"@testing-library/cypress": "^10.0.1",
"@wordpress/env": "^9.1.0",
"@wordpress/scripts": "^26.19.0",
"@wordpress/scripts": "^27.1.0",
"cypress": "^13.6.3",
"cypress-axe": "1.5.0",
"node-wp-i18n": "^1.2.7",
Expand Down

0 comments on commit 4a66b6f

Please sign in to comment.