Skip to content

Commit

Permalink
Merge pull request #914 from bluehost/update/node
Browse files Browse the repository at this point in the history
update node version in plugin, nvm and main workflows
  • Loading branch information
circlecube authored Jan 29, 2024
2 parents f0514fd + fd3e007 commit 695fbdc
Show file tree
Hide file tree
Showing 9 changed files with 390 additions and 392 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cypress-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,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.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,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/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,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/upload-artifact-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,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/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
cache: 'npm'

- name: Get Composer cache directory
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v20
742 changes: 370 additions & 372 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
"William Earnhardt (https://wearnhardt.com)"
],
"engines": {
"node": ">=16",
"npm": ">=7"
"node": ">=20",
"npm": ">=10"
},
"dependencies": {
"@heroicons/react": "^2.1.1",
"@newfold-labs/wp-module-ecommerce": "1.3.18",
"@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",
"@wordpress/compose": "^6.27.0",
"@wordpress/dom-ready": "^3.49.0",
"@wordpress/element": "^5.26.0",
"@wordpress/html-entities": "^3.49.0",
Expand All @@ -38,8 +38,8 @@
"jquery": "^3.7.1",
"lodash": "^4.17.21",
"react": "^18.2.0",
"react-error-boundary": "^4.0.11",
"react-router-dom": "^6.20.1",
"react-error-boundary": "^4.0.12",
"react-router-dom": "^6.21.3",
"react-use": "^17.4.3",
"semver": "^7.5.4"
},
Expand All @@ -48,11 +48,11 @@
"@testing-library/cypress": "^10.0.1",
"@wordpress/env": "^9.1.0",
"@wordpress/eslint-plugin": "^17.6.0",
"@wordpress/scripts": "^26.19.0",
"@wordpress/scripts": "^27.1.0",
"cypress": "^13.6.3",
"cypress-axe": "^1.5.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-import": "^2.29.1",
"tailwindcss": "^3.4.1"
},
"scripts": {
Expand Down

0 comments on commit 695fbdc

Please sign in to comment.