Skip to content

Commit 7d0c8c0

Browse files
CopilotXe
andcommitted
fix(ci): address code review feedback
- Remove non-existent semantic-release-dry-run script reference - Fix git diff comparison to use origin/main instead of HEAD~1 Signed-off-by: Claude 3.7 Sonnet via Cline Co-authored-by: Xe <529003+Xe@users.noreply.github.com>
1 parent 37405d9 commit 7d0c8c0

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,11 @@ jobs:
4343
# Create and checkout release branch
4444
git checkout -b "${BRANCH_NAME}"
4545
46-
# Run semantic-release in dry-run mode first to get the version
47-
npm run semantic-release-dry-run || true
48-
4946
# Run semantic-release on the release branch
5047
npx semantic-release --debug
5148
5249
# Check if semantic-release made changes
53-
if git diff --quiet HEAD~1 HEAD 2>/dev/null || [ $(git rev-list --count HEAD ^main) -eq 0 ]; then
50+
if git diff --quiet origin/main HEAD 2>/dev/null || [ $(git rev-list --count HEAD ^origin/main) -eq 0 ]; then
5451
echo "No release created"
5552
exit 0
5653
fi

0 commit comments

Comments
 (0)