mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-01 19:58:29 +08:00
[UI] Migrate NPM to PNPM in CI builds (#9431)
This commit is contained in:
parent
923f3f38e3
commit
14d71d1462
7
.github/workflows/frontend.yml
vendored
7
.github/workflows/frontend.yml
vendored
@ -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
|
||||
|
@ -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
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…
Reference in New Issue
Block a user