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
- 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

16
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>

2
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>

Loading…
Cancel
Save