From e9f1fbbcd0e46db178c9f5114572444948c18941 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Fri, 19 Jul 2024 02:13:10 +0530 Subject: [PATCH] ci: enable compact mode for pkg-pr-new --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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