fix(ci): 将 npm version 改为 pnpm version 修复 workspace 协议问题
This commit is contained in:
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user