diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abfdad6a..a9d01ea3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ on: branches: [main] pull_request: branches: [main] - types: [opened, synchronize, reopened, labeled] + types: [opened, synchronize, reopened, labeled, ready_for_review] workflow_dispatch: permissions: {} @@ -28,8 +28,8 @@ jobs: matrix: node_version: [18, 20, 22] exclude: - - node_version: ${{ github.event.action == 'labeled' && 18 }} - - node_version: ${{ github.event.action == 'labeled' && 20 }} + - node_version: ${{ contains('labeled,ready_for_review', github.event.action) && 18 }} + - node_version: ${{ contains('labeled,ready_for_review', github.event.action) && 20 }} steps: - name: Checkout @@ -55,4 +55,4 @@ jobs: - name: Publish preview if: matrix.node_version == 22 && github.event_name == 'pull_request' && github.event.action != 'reopened' && !github.event.pull_request.draft && contains(github.event.pull_request.labels.*.name, 'cr-tracked') && !contains(github.event.pull_request.labels.*.name, 'spam') && !contains(github.event.pull_request.labels.*.name, 'invalid') - run: pnpx pkg-pr-new publish + run: pnpx pkg-pr-new publish --compact