ci: frontend build command

This commit is contained in:
CaptainB 2023-08-07 14:43:16 +08:00
parent e672c2dfdf
commit 58d74c9bd3
2 changed files with 9 additions and 8 deletions

View File

@ -30,35 +30,35 @@
<executions> <executions>
<execution> <execution>
<!-- optional: you don't really need execution ids, but it looks nice in your build log. --> <!-- optional: you don't really need execution ids, but it looks nice in your build log. -->
<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>
<!-- optional: default phase is "generate-resources" --> <!-- optional: default phase is "generate-resources" -->
<phase>generate-resources</phase> <phase>generate-resources</phase>
<configuration> <configuration>
<nodeVersion>${node.version}</nodeVersion> <nodeVersion>${node.version}</nodeVersion>
<npmVersion>${npm.version}</npmVersion> <pnpmVersion>${pnpm.version}</pnpmVersion>
</configuration> </configuration>
</execution> </execution>
<!-- Install all project dependencies --> <!-- Install all project dependencies -->
<execution> <execution>
<id>npm install</id> <id>pnpm install</id>
<goals> <goals>
<goal>npm</goal> <goal>pnpm</goal>
</goals> </goals>
<configuration> <configuration>
<!-- optional: The default argument is actually <!-- optional: The default argument is actually
"install", so unless you need to run some other yarn command, "install", so unless you need to run some other yarn command,
you can remove this whole <configuration> section. you can remove this whole <configuration> section.
--> -->
<arguments>install --legacy-peer-deps</arguments> <arguments>install</arguments>
</configuration> </configuration>
</execution> </execution>
<execution> <execution>
<id>npm run build</id> <id>pnpm run build</id>
<goals> <goals>
<goal>npm</goal> <goal>pnpm</goal>
</goals> </goals>
<configuration> <configuration>
<arguments>run build</arguments> <arguments>run build</arguments>

View File

@ -86,6 +86,7 @@
<frontend-maven-plugin.version>1.12.1</frontend-maven-plugin.version> <frontend-maven-plugin.version>1.12.1</frontend-maven-plugin.version>
<node.version>v16.20.0</node.version> <node.version>v16.20.0</node.version>
<npm.version>8.19.4</npm.version> <npm.version>8.19.4</npm.version>
<pnpm.version>8.6.12</pnpm.version>
<!-- --> <!-- -->
<skipAntRunForJenkins>false</skipAntRunForJenkins> <skipAntRunForJenkins>false</skipAntRunForJenkins>
<commons-dbcp2-version>2.9.0</commons-dbcp2-version> <commons-dbcp2-version>2.9.0</commons-dbcp2-version>