fix(ci): 将 npm version 改为 pnpm version 修复 workspace 协议问题

This commit is contained in:
yhh
2025-11-23 22:46:21 +08:00
parent 0279cf6d27
commit eea7ed9e58

View File

@@ -72,9 +72,9 @@ jobs:
run: | run: |
cd packages/${{ github.event.inputs.package }} cd packages/${{ github.event.inputs.package }}
if [ "${{ github.event.inputs.version_type }}" = "custom" ]; then if [ "${{ github.event.inputs.version_type }}" = "custom" ]; then
npm version ${{ github.event.inputs.custom_version }} --no-git-tag-version --allow-same-version pnpm version ${{ github.event.inputs.custom_version }} --no-git-tag-version --allow-same-version
else else
npm version ${{ github.event.inputs.version_type }} --no-git-tag-version pnpm version ${{ github.event.inputs.version_type }} --no-git-tag-version
fi fi
NEW_VERSION=$(node -p "require('./package.json').version") NEW_VERSION=$(node -p "require('./package.json').version")
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT