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

This commit is contained in:
kezhenxu94 2022-04-11 14:16:23 +08:00 committed by GitHub
parent 923f3f38e3
commit 14d71d1462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 12 deletions

View File

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

View File

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

View File

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