Skip to content

Commit 468ca9c

Browse files
committed
add release workflow debug steps to diagnose version resolution issue
1 parent dec1db2 commit 468ca9c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,17 @@ jobs:
6868
echo "MAVEN_CENTRAL_PORTAL_TOKEN_USERNAME=$MVN_USER"
6969
echo "MAVEN_CENTRAL_PORTAL_TOKEN_PASSWORD=$MVN_PASS"
7070
} >> "$GITHUB_ENV"
71-
- name: Stage artifacts
72-
run: mvn deploy -Ppublication -Dprettier.skip=true -ntp -e
73-
- name: Debug - show resolved versions and staged artifacts
74-
if: always()
71+
- name: Debug - show resolved version before build
7572
run: |
7673
echo "=== Git tag/describe ==="
7774
git describe --tags --exact-match HEAD || echo "(no exact tag match)"
78-
git describe --tags || echo "(no tags found)"
79-
echo "=== Staging directory ==="
80-
find target/staging-deploy -name "*.pom" | sort | head -30
75+
echo "=== Maven resolved version ==="
76+
mvn help:evaluate -Dexpression=project.version -q -DforceStdout
77+
- name: Stage artifacts
78+
run: mvn deploy -Ppublication -Dprettier.skip=true -ntp -e
79+
- name: Debug - show staged artifacts
80+
if: always()
81+
run: find target/staging-deploy -name "*.pom" | sort | head -30
8182
- name: Deploy to Maven Central
8283
# prereleased: USER_MANAGED — artifacts sit pending in the portal for review.
8384
# released: AUTOMATIC — artifacts are published immediately after validation.

0 commit comments

Comments
 (0)