Skip to content

Commit b5e9bcc

Browse files
committed
ci: update publish
1 parent 9feb878 commit b5e9bcc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Publish package to the Maven Central Repository
22
on:
33
release:
4-
types: [created]
4+
types: [ created ]
55
jobs:
66
publish:
77
runs-on: ubuntu-latest
@@ -12,8 +12,11 @@ jobs:
1212
with:
1313
node-version: 20.x
1414
cache: "npm"
15+
cache-dependency-path: chat-agent-ui/package-lock.json
1516
- run: npm ci
17+
working-directory: ./chat-agent-ui
1618
- run: npm run build --if-present
19+
working-directory: ./chat-agent-ui
1720
- name: Set up Maven Central Repository
1821
uses: actions/setup-java@v3
1922
with:
@@ -26,7 +29,7 @@ jobs:
2629
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2730
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2831
- name: Publish package
29-
run: mvn -Ppublish --batch-mode deploy
32+
run: mvn -Ppublish -B -ntp deploy
3033
env:
3134
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3235
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

0 commit comments

Comments
 (0)