Browse Source

[UI] Migrate NPM to PNPM in CI builds (#9431)

3.0.0/version-upgrade
kezhenxu94 3 years ago committed by GitHub
parent
commit
14d71d1462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      .github/workflows/frontend.yml
  2. 16
      dolphinscheduler-ui-next/pom.xml
  3. 2
      pom.xml

7
.github/workflows/frontend.yml

@ -58,6 +58,7 @@ jobs:
node-version: 16 node-version: 16
- name: Compile and Build - name: Compile and Build
run: | run: |
npm install npm install pnpm -g
npm run lint pnpm install
npm run build:prod pnpm run lint
pnpm run build:prod

16
dolphinscheduler-ui-next/pom.xml

@ -30,7 +30,7 @@
<properties> <properties>
<node.version>v16.13.1</node.version> <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> <sonar.sources>src</sonar.sources>
</properties> </properties>
@ -45,19 +45,19 @@
<version>${frontend-maven-plugin.version}</version> <version>${frontend-maven-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>install node and npm</id> <id>install node and pnpm</id>
<goals> <goals>
<goal>install-node-and-npm</goal> <goal>install-node-and-pnpm</goal>
</goals> </goals>
<configuration> <configuration>
<nodeVersion>${node.version}</nodeVersion> <nodeVersion>${node.version}</nodeVersion>
<npmVersion>${npm.version}</npmVersion> <pnpmVersion>${pnpm.version}</pnpmVersion>
</configuration> </configuration>
</execution> </execution>
<execution> <execution>
<id>npm install</id> <id>pnpm install</id>
<goals> <goals>
<goal>npm</goal> <goal>pnpm</goal>
</goals> </goals>
<phase>generate-resources</phase> <phase>generate-resources</phase>
<configuration> <configuration>
@ -65,9 +65,9 @@
</configuration> </configuration>
</execution> </execution>
<execution> <execution>
<id>npm run build:prod</id> <id>pnpm run build:prod</id>
<goals> <goals>
<goal>npm</goal> <goal>pnpm</goal>
</goals> </goals>
<configuration> <configuration>
<arguments>run build:prod</arguments> <arguments>run build:prod</arguments>

2
pom.xml

@ -93,7 +93,7 @@
<spotbugs.version>3.1.12</spotbugs.version> <spotbugs.version>3.1.12</spotbugs.version>
<checkstyle.version>3.1.2</checkstyle.version> <checkstyle.version>3.1.2</checkstyle.version>
<curator.test>2.12.0</curator.test> <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-compiler-plugin.version>3.3</maven-compiler-plugin.version>
<maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version> <maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
<maven-release-plugin.version>2.5.3</maven-release-plugin.version> <maven-release-plugin.version>2.5.3</maven-release-plugin.version>

Loading…
Cancel
Save