Skip to content

Commit 3b76254

Browse files
authored
fix(CI): should filter workspaces in pkg-pr-new (#767)
1 parent 956119c commit 3b76254

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/preview.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
name: Preview Release
33

44
on:
5-
pull_request:
6-
types: [closed]
5+
push:
6+
branches: [main]
77
workflow_dispatch:
88

99
permissions:
1010
contents: read
1111

1212
jobs:
1313
preview:
14-
if: github.repository == 'web-infra-dev/rslib' && github.event.pull_request.merged == true
14+
if: github.repository == 'web-infra-dev/rslib'
1515
runs-on: ubuntu-latest
1616

1717
steps:
@@ -46,4 +46,4 @@ jobs:
4646

4747
- name: Publish Preview
4848
if: steps.changes.outputs.changed == 'true'
49-
run: pnpx pkg-pr-new publish --compact --pnpm
49+
run: pnpx pkg-pr-new publish --compact --pnpm ./packages/*

0 commit comments

Comments
 (0)