Skip to content

Commit b6e38ed

Browse files
GhostTypesclaude
andcommitted
fix(ci): skip pnpm version when package.json already matches tag version
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3ee86d6 commit b6e38ed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ jobs:
4949
VERSION="${CURRENT_VERSION}-${TIMESTAMP}"
5050
fi
5151
echo "Using version: $VERSION"
52-
pnpm version $VERSION --no-git-tag-version
52+
CURRENT_VERSION=$(node -p "require('./package.json').version")
53+
if [[ "$CURRENT_VERSION" != "$VERSION" ]]; then
54+
pnpm version $VERSION --no-git-tag-version
55+
fi
5356
echo "version=$VERSION" >> $GITHUB_OUTPUT
5457
5558
- name: Publish to GitHub Packages

0 commit comments

Comments
 (0)