You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/04/11 06:16:29 UTC

[dolphinscheduler] branch dev updated: [UI] Migrate NPM to PNPM in CI builds (#9431)

This is an automated email from the ASF dual-hosted git repository.

songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 14d71d1462 [UI] Migrate NPM to PNPM in CI builds (#9431)
14d71d1462 is described below

commit 14d71d1462508817f20d20a6274a0f52b89d126a
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Mon Apr 11 14:16:23 2022 +0800

    [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 b1125ce481..28487e19e3 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 3775cd9585..849189a20d 100644
--- a/dolphinscheduler-ui-next/pom.xml
+++ b/dolphinscheduler-ui-next/pom.xml
@@ -30,7 +30,7 @@
 
   <properties>
     <node.version>v16.13.1</node.version>
-    <npm.version>8.1.2</npm.version>
+    <pnpm.version>v6.32.6</pnpm.version>
     <sonar.sources>src</sonar.sources>
   </properties>
 
@@ -45,19 +45,19 @@
             <version>${frontend-maven-plugin.version}</version>
             <executions>
               <execution>
-                <id>install node and npm</id>
+                <id>install node and pnpm</id>
                 <goals>
-                  <goal>install-node-and-npm</goal>
+                  <goal>install-node-and-pnpm</goal>
                 </goals>
                 <configuration>
                   <nodeVersion>${node.version}</nodeVersion>
-                  <npmVersion>${npm.version}</npmVersion>
+                  <pnpmVersion>${pnpm.version}</pnpmVersion>
                 </configuration>
               </execution>
               <execution>
-                <id>npm install</id>
+                <id>pnpm install</id>
                 <goals>
-                  <goal>npm</goal>
+                  <goal>pnpm</goal>
                 </goals>
                 <phase>generate-resources</phase>
                 <configuration>
@@ -65,9 +65,9 @@
                 </configuration>
               </execution>
               <execution>
-                <id>npm run build:prod</id>
+                <id>pnpm run build:prod</id>
                 <goals>
-                  <goal>npm</goal>
+                  <goal>pnpm</goal>
                 </goals>
                 <configuration>
                   <arguments>run build:prod</arguments>
diff --git a/pom.xml b/pom.xml
index 8d3d95f5ca..bffe995cc8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -93,7 +93,7 @@
         <spotbugs.version>3.1.12</spotbugs.version>
         <checkstyle.version>3.1.2</checkstyle.version>
         <curator.test>2.12.0</curator.test>
-        <frontend-maven-plugin.version>1.6</frontend-maven-plugin.version>
+        <frontend-maven-plugin.version>1.12.1</frontend-maven-plugin.version>
         <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
         <maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
         <maven-release-plugin.version>2.5.3</maven-release-plugin.version>