From 4c8d3ba2e75fa3679b6fb049f28bedb6b2aab6c8 Mon Sep 17 00:00:00 2001 From: Liao Xin <93535922+liewstar@users.noreply.github.com> Date: Thu, 3 Oct 2024 08:36:33 +0800 Subject: [PATCH] feat: fix pom.xml to fix CI for publishing to https://central.sonatype.com (#58) --- .github/workflows/release.yml | 6 +++--- pom.xml | 18 +++++++----------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 778c9d2..2866f26 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v2 with: - node-version: 18 + node-version: 20 - name: Semantic Release run: | @@ -51,5 +51,5 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }} - OSSRH_JIRA_USERNAME: ${{ secrets.OSSRH_USERNAME }} - OSSRH_JIRA_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + OSSRH_JIRA_USERNAME: ${{ secrets.OSSRH_JIRA_USERNAME }} + OSSRH_JIRA_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }} diff --git a/pom.xml b/pom.xml index 7e41bb2..10ed77e 100644 --- a/pom.xml +++ b/pom.xml @@ -61,12 +61,8 @@ ossrh - https://oss.sonatype.org/content/repositories/snapshots + https://central.sonatype.com - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - @@ -232,15 +228,15 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 + org.sonatype.central + central-publishing-maven-plugin + 0.5.0 true - ossrh - https://oss.sonatype.org/ + ossrh + true - true + true