chore:update node version to v18 (#26358)
## Description Update node version --------- Co-authored-by: Valera Melnikov <melnikov.vv@greendatasoft.ru>
This commit is contained in:
parent
562e0bed00
commit
826d58f813
4
.github/workflows/appsmithctl.yml
vendored
4
.github/workflows/appsmithctl.yml
vendored
|
|
@ -74,11 +74,11 @@ jobs:
|
|||
- if: steps.appsmithctl_run_result.outputs.appsmithctl_run_result != 'success'
|
||||
run: echo "I'm alive!" && exit 0
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
if: steps.appsmithctl_run_result.outputs.appsmithctl_run_result != 'success'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# Install all the dependencies
|
||||
- name: Install dependencies
|
||||
|
|
|
|||
4
.github/workflows/build-chromatic.yml
vendored
4
.github/workflows/build-chromatic.yml
vendored
|
|
@ -31,10 +31,10 @@ jobs:
|
|||
fetch-depth: 0
|
||||
ref: release
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
- name: Install Dependencies
|
||||
working-directory: ./app/client/packages/storybook
|
||||
|
|
|
|||
4
.github/workflows/build-storybook.yml
vendored
4
.github/workflows/build-storybook.yml
vendored
|
|
@ -31,10 +31,10 @@ jobs:
|
|||
fetch-depth: 0
|
||||
ref: release
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
- name: Install Dependencies
|
||||
working-directory: ./app/client/packages/storybook
|
||||
|
|
|
|||
4
.github/workflows/ci-sanity.yml
vendored
4
.github/workflows/ci-sanity.yml
vendored
|
|
@ -161,11 +161,11 @@ jobs:
|
|||
# docker cp init-mssql-dump-for-test.sql mssqldb:var/init-mssql-dump-for-test.sql
|
||||
# docker exec -i mssqldb /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P Root@123 -i /var/init-mssql-dump-for-test.sql
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# Install all the dependencies
|
||||
- name: Install dependencies
|
||||
|
|
|
|||
4
.github/workflows/ci-smoke.yml
vendored
4
.github/workflows/ci-smoke.yml
vendored
|
|
@ -161,11 +161,11 @@ jobs:
|
|||
# docker cp init-mssql-dump-for-test.sql mssqldb:var/init-mssql-dump-for-test.sql
|
||||
# docker exec -i mssqldb /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P Root@123 -i /var/init-mssql-dump-for-test.sql
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# Install all the dependencies
|
||||
- name: Install dependencies
|
||||
|
|
|
|||
4
.github/workflows/ci-test-custom-script.yml
vendored
4
.github/workflows/ci-test-custom-script.yml
vendored
|
|
@ -157,11 +157,11 @@ jobs:
|
|||
--add-host=host.docker.internal:host-gateway --add-host=api.segment.io:host-gateway --add-host=t.appsmith.com:host-gateway \
|
||||
cicontainer
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# actions/setup-node@v3 doesn’t work properly with Yarn 3
|
||||
# when the project lives in a subdirectory: https://github.com/actions/setup-node/issues/488
|
||||
|
|
|
|||
4
.github/workflows/ci-test-hosted.yml
vendored
4
.github/workflows/ci-test-hosted.yml
vendored
|
|
@ -125,11 +125,11 @@ jobs:
|
|||
- name: cat run_result
|
||||
run: echo ${{ steps.run_result.outputs.run_result }}
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# actions/setup-node@v3 doesn’t work properly with Yarn 3
|
||||
# when the project lives in a subdirectory: https://github.com/actions/setup-node/issues/488
|
||||
|
|
|
|||
4
.github/workflows/ci-test-limited.yml
vendored
4
.github/workflows/ci-test-limited.yml
vendored
|
|
@ -176,10 +176,10 @@ jobs:
|
|||
--add-host=host.docker.internal:host-gateway --add-host=api.segment.io:host-gateway --add-host=t.appsmith.com:host-gateway \
|
||||
cicontainer
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# actions/setup-node@v3 doesn’t work properly with Yarn 3
|
||||
# when the project lives in a subdirectory: https://github.com/actions/setup-node/issues/488
|
||||
|
|
|
|||
4
.github/workflows/ci-test.yml
vendored
4
.github/workflows/ci-test.yml
vendored
|
|
@ -190,11 +190,11 @@ jobs:
|
|||
--add-host=host.docker.internal:host-gateway --add-host=api.segment.io:host-gateway --add-host=t.appsmith.com:host-gateway \
|
||||
cicontainer
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# actions/setup-node@v3 doesn’t work properly with Yarn 3
|
||||
# when the project lives in a subdirectory: https://github.com/actions/setup-node/issues/488
|
||||
|
|
|
|||
4
.github/workflows/client-build.yml
vendored
4
.github/workflows/client-build.yml
vendored
|
|
@ -134,11 +134,11 @@ jobs:
|
|||
- if: steps.run_result.outputs.run_result != 'success'
|
||||
run: echo "I'm alive!" && exit 0
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# actions/setup-node@v3 doesn’t work properly with Yarn 3
|
||||
# when the project lives in a subdirectory: https://github.com/actions/setup-node/issues/488
|
||||
|
|
|
|||
4
.github/workflows/client-lint.yml
vendored
4
.github/workflows/client-lint.yml
vendored
|
|
@ -55,11 +55,11 @@ jobs:
|
|||
- if: steps.run_result.outputs.run_result != 'success'
|
||||
run: echo "I'm alive!" && exit 0
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# actions/setup-node@v3 doesn’t work properly with Yarn 3
|
||||
# when the project lives in a subdirectory: https://github.com/actions/setup-node/issues/488
|
||||
|
|
|
|||
4
.github/workflows/client-prettier.yml
vendored
4
.github/workflows/client-prettier.yml
vendored
|
|
@ -45,11 +45,11 @@ jobs:
|
|||
- if: steps.run_result.outputs.run_result != 'success'
|
||||
run: echo "I'm alive!" && exit 0
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# actions/setup-node@v3 doesn’t work properly with Yarn 3
|
||||
# when the project lives in a subdirectory: https://github.com/actions/setup-node/issues/488
|
||||
|
|
|
|||
4
.github/workflows/client-unit-tests.yml
vendored
4
.github/workflows/client-unit-tests.yml
vendored
|
|
@ -55,11 +55,11 @@ jobs:
|
|||
- if: steps.run_result.outputs.run_result != 'success'
|
||||
run: echo "I'm alive!" && exit 0
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# actions/setup-node@v3 doesn’t work properly with Yarn 3
|
||||
# when the project lives in a subdirectory: https://github.com/actions/setup-node/issues/488
|
||||
|
|
|
|||
8
.github/workflows/github-release.yml
vendored
8
.github/workflows/github-release.yml
vendored
|
|
@ -57,10 +57,10 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# Retrieve npm dependencies from cache. After a successful run, these dependencies are cached again
|
||||
- name: Cache npm dependencies
|
||||
|
|
@ -167,10 +167,10 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# actions/setup-node@v3 doesn’t work properly with Yarn 3
|
||||
# when the project lives in a subdirectory: https://github.com/actions/setup-node/issues/488
|
||||
|
|
|
|||
|
|
@ -65,11 +65,11 @@ jobs:
|
|||
- name: Install Vercel CLI
|
||||
run: npm install --global vercel@latest
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# actions/setup-node@v3 doesn’t work properly with Yarn 3
|
||||
# when the project lives in a subdirectory: https://github.com/actions/setup-node/issues/488
|
||||
|
|
|
|||
2
.github/workflows/perf-test-v2.yml
vendored
2
.github/workflows/perf-test-v2.yml
vendored
|
|
@ -98,7 +98,7 @@ jobs:
|
|||
if: steps.run_result.outputs.run_result != 'success'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
- name: Download Docker image artifact
|
||||
uses: actions/download-artifact@v3
|
||||
|
|
|
|||
2
.github/workflows/perf-test.yml
vendored
2
.github/workflows/perf-test.yml
vendored
|
|
@ -98,7 +98,7 @@ jobs:
|
|||
if: steps.run_result.outputs.run_result != 'success'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
- name: Download Docker image artifact
|
||||
uses: actions/download-artifact@v3
|
||||
|
|
|
|||
4
.github/workflows/rts-build.yml
vendored
4
.github/workflows/rts-build.yml
vendored
|
|
@ -89,11 +89,11 @@ jobs:
|
|||
- if: steps.run_result.outputs.run_result != 'success'
|
||||
run: echo "I'm alive!" && exit 0
|
||||
|
||||
- name: Use Node.js 16.14.0
|
||||
- name: Use Node.js
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.14.0"
|
||||
node-version-file: app/client/package.json
|
||||
|
||||
# actions/setup-node@v3 doesn’t work properly with Yarn 3
|
||||
# when the project lives in a subdirectory: https://github.com/actions/setup-node/issues/488
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
lts/gallium
|
||||
lts/hydrogen
|
||||
|
|
|
|||
9
app/client/.yarn/plugins/@yarnpkg/plugin-engines.cjs
vendored
Normal file
9
app/client/.yarn/plugins/@yarnpkg/plugin-engines.cjs
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/* eslint-disable */
|
||||
//prettier-ignore
|
||||
module.exports = {
|
||||
name: "@yarnpkg/plugin-engines",
|
||||
factory: function (require) {
|
||||
var plugin=(()=>{var P=Object.create,f=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,Y=Object.prototype.hasOwnProperty;var b=n=>f(n,"__esModule",{value:!0});var i=n=>{if(typeof require!="undefined")return require(n);throw new Error('Dynamic require of "'+n+'" is not supported')};var T=(n,e)=>{for(var r in e)f(n,r,{get:e[r],enumerable:!0})},V=(n,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of N(e))!Y.call(n,t)&&t!=="default"&&f(n,t,{get:()=>e[t],enumerable:!(r=R(e,t))||r.enumerable});return n},s=n=>V(b(f(n!=null?P(j(n)):{},"default",n&&n.__esModule&&"default"in n?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n);var U={};T(U,{default:()=>q});var o=s(i("@yarnpkg/core")),c;(function(r){r.Yarn="Yarn",r.Console="Console"})(c||(c={}));var h=class{constructor(e){this.throwWrongEngineError=(e,r)=>{let t=this.formatErrorMessage(e,r);this.throwError(t)};this.throwError=e=>{switch(this.errorReporter){case c.Yarn:this.reportYarnError(e);break;case c.Console:default:this.reportConsoleError(e);break}};this.reportYarnError=e=>{throw new o.ReportError(o.MessageName.UNNAMED,e)};this.reportConsoleError=e=>{console.error(e),process.exit(1)};this.formatErrorMessage=(e,r)=>{let{configuration:t}=this.project,p=o.formatUtils.applyStyle(t,o.formatUtils.pretty(t,this.engine,"green"),2),g=o.formatUtils.pretty(t,e,"cyan"),d=o.formatUtils.pretty(t,r,"cyan"),w=`The current ${p} version ${g} does not satisfy the required version ${d}.`;return o.formatUtils.pretty(t,w,"red")};this.project=e.project,this.errorReporter=e.errorReporter}};var m=s(i("fs")),y=s(i("path")),l=s(i("semver")),k=s(i("@yarnpkg/fslib")),a=s(i("@yarnpkg/core"));var v=class extends h{constructor(){super(...arguments);this.resolveNvmRequiredVersion=()=>{let{configuration:e,cwd:r}=this.project,t=(0,y.resolve)(k.npath.fromPortablePath(r),".nvmrc"),p=a.formatUtils.applyStyle(e,a.formatUtils.pretty(e,this.engine,"green"),2);if(!(0,m.existsSync)(t)){this.throwError(a.formatUtils.pretty(e,`Unable to verify the ${p} version. The .nvmrc file does not exist.`,"red"));return}let g=(0,m.readFileSync)(t,"utf-8").trim();if((0,l.validRange)(g))return g;let d=a.formatUtils.pretty(e,".nvmrc","yellow");this.throwError(a.formatUtils.pretty(e,`Unable to verify the ${p} version. The ${d} file contains an invalid semver range.`,"red"))}}get engine(){return"Node"}verifyEngine(e){let r=e.node;r!=null&&(r===".nvmrc"&&(r=this.resolveNvmRequiredVersion()),(0,l.satisfies)(process.version,r,{includePrerelease:!0})||this.throwWrongEngineError(process.version.replace(/^v/i,""),r.replace(/^v/i,"")))}};var x=s(i("semver")),E=s(i("@yarnpkg/core"));var u=class extends h{get engine(){return"Yarn"}verifyEngine(e){let r=e.yarn;r!=null&&((0,x.satisfies)(E.YarnVersion,r,{includePrerelease:!0})||this.throwWrongEngineError(E.YarnVersion,r))}};var C=n=>e=>{if(process.env.PLUGIN_YARN_ENGINES_DISABLE!=null)return;let{engines:r={}}=e.getWorkspaceByCwd(e.cwd).manifest.raw,t={project:e,errorReporter:n};[new v(t),new u(t)].forEach(g=>g.verifyEngine(r))},S={hooks:{validateProject:C(c.Yarn),setupScriptEnvironment:C(c.Console)}},q=S;return U;})();
|
||||
return plugin;
|
||||
}
|
||||
};
|
||||
|
|
@ -5,5 +5,7 @@ plugins:
|
|||
spec: "https://raw.githubusercontent.com/ambar/yarn-plugin-dedupe-on-install/main/index.js"
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
|
||||
spec: "@yarnpkg/plugin-workspace-tools"
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-engines.cjs
|
||||
spec: "https://raw.githubusercontent.com/devoto13/yarn-plugin-engines/main/bundles/%40yarnpkg/plugin-engines.js"
|
||||
|
||||
yarnPath: .yarn/releases/yarn-3.5.1.cjs
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": "^16.14.0",
|
||||
"npm": "^8.5.5"
|
||||
"node": "^18.17.1",
|
||||
"yarn": "^3.5.1"
|
||||
},
|
||||
"scripts": {
|
||||
"install": "node apply-patches.js"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
"./lib/*": "./lib/*.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^16.14.0",
|
||||
"node": "^18.17.1",
|
||||
"yarn": "^3.5.1"
|
||||
},
|
||||
"packageManager": "yarn@3.5.1",
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ On your development machine, please ensure that:
|
|||
- Check below for installation and usage details:
|
||||
|
||||
1. Install a node version manager. For eg: check [nvm](https://github.com/nvm-sh/nvm) or [fnm](https://github.com/Schniz/fnm).
|
||||
1. In the project's root, run `nvm use 16.14.0` or `fnm use 16.14.0`.
|
||||
1. In the project's root, run `nvm use 18.17.1` or `fnm use 18.17.1`.
|
||||
|
||||
### Running Tests on Client
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user