From 2f8436feb6c9250e97e3130fcabfe8763c390368 Mon Sep 17 00:00:00 2001 From: Timeless0911 <1604889533@qq.com> Date: Wed, 19 Feb 2025 15:04:43 +0800 Subject: [PATCH] fix(CI): should filter workspaces in pkg-pr-new --- .github/workflows/preview.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index bd5309f92..97df16ef7 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -2,8 +2,8 @@ name: Preview Release on: - pull_request: - types: [closed] + push: + branches: [main] workflow_dispatch: permissions: @@ -11,7 +11,7 @@ permissions: jobs: preview: - if: github.repository == 'web-infra-dev/rslib' && github.event.pull_request.merged == true + if: github.repository == 'web-infra-dev/rslib' runs-on: ubuntu-latest steps: @@ -46,4 +46,4 @@ jobs: - name: Publish Preview if: steps.changes.outputs.changed == 'true' - run: pnpx pkg-pr-new publish --compact --pnpm + run: pnpx pkg-pr-new publish --compact --pnpm ./packages/*