Update publish-pr-commit-pkg.yml

This commit is contained in:
sea
2025-02-21 11:39:16 +08:00
committed by GitHub
parent e12910b477
commit 983f77c856

View File

@@ -45,7 +45,14 @@ jobs:
ls -la
jq --arg newVersion "$LATEST_VERSION" '.version = $newVersion' package.json > tmp.json && mv tmp.json package.json
- name: Publish
- name: Publish for PR
if: ${{ github.event_name == 'pull_request' }}
run: |
cd dist/element-plus
pnpx pkg-pr-new publish
- name: Publish for Commit Push
if: ${{ github.event_name == 'push' }}
run: |
cd dist/element-plus
pnpx pkg-pr-new publish --comment=off