We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b4864f commit d857d81Copy full SHA for d857d81
.github/workflows/build.yml
@@ -17,6 +17,7 @@ jobs:
17
uses: actions/setup-node@v4
18
with:
19
node-version: '22.x'
20
+ cache: 'npm'
21
- name: Set up JDK 21
22
uses: actions/setup-java@v4
23
@@ -25,3 +26,12 @@ jobs:
25
26
cache: maven
27
- name: Build with Maven
28
run: mvn -B package --file pom.xml
29
+ - name: PMD with Maven
30
+ run: mvn pmd:pmd --file pom.xml
31
+
32
+ - name: Deploy Nexus
33
+ if: ${{ github.ref == 'refs/heads/main' }}
34
+ run: mvn -B source:jar deploy --file pom.xml -DskipTests
35
+ env:
36
+ MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
37
+ MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
0 commit comments