From 14d71d1462508817f20d20a6274a0f52b89d126a Mon Sep 17 00:00:00 2001 From: kezhenxu94 Date: Mon, 11 Apr 2022 14:16:23 +0800 Subject: [PATCH] [UI] Migrate NPM to PNPM in CI builds (#9431) --- .github/workflows/frontend.yml | 7 ++++--- dolphinscheduler-ui-next/pom.xml | 16 ++++++++-------- pom.xml | 2 +- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index b1125ce48..28487e19e 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -58,6 +58,7 @@ jobs: node-version: 16 - name: Compile and Build run: | - npm install - npm run lint - npm run build:prod + npm install pnpm -g + pnpm install + pnpm run lint + pnpm run build:prod diff --git a/dolphinscheduler-ui-next/pom.xml b/dolphinscheduler-ui-next/pom.xml index 3775cd958..849189a20 100644 --- a/dolphinscheduler-ui-next/pom.xml +++ b/dolphinscheduler-ui-next/pom.xml @@ -30,7 +30,7 @@ v16.13.1 - 8.1.2 + v6.32.6 src @@ -45,19 +45,19 @@ ${frontend-maven-plugin.version} - install node and npm + install node and pnpm - install-node-and-npm + install-node-and-pnpm ${node.version} - ${npm.version} + ${pnpm.version} - npm install + pnpm install - npm + pnpm generate-resources @@ -65,9 +65,9 @@ - npm run build:prod + pnpm run build:prod - npm + pnpm run build:prod diff --git a/pom.xml b/pom.xml index 8d3d95f5c..bffe995cc 100644 --- a/pom.xml +++ b/pom.xml @@ -93,7 +93,7 @@ 3.1.12 3.1.2 2.12.0 - 1.6 + 1.12.1 3.3 3.3.0 2.5.3