ci: enable compact mode for pkg-pr-new (#4063)

pull/4064/head
Divyansh Singh 5 months ago committed by GitHub
parent 1d629c5c4f
commit bf363d7bc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -10,7 +10,7 @@ on:
branches: [main] branches: [main]
pull_request: pull_request:
branches: [main] branches: [main]
types: [opened, synchronize, reopened, labeled] types: [opened, synchronize, reopened, labeled, ready_for_review]
workflow_dispatch: workflow_dispatch:
permissions: {} permissions: {}
@ -28,8 +28,8 @@ jobs:
matrix: matrix:
node_version: [18, 20, 22] node_version: [18, 20, 22]
exclude: exclude:
- node_version: ${{ github.event.action == 'labeled' && 18 }} - node_version: ${{ contains('labeled,ready_for_review', github.event.action) && 18 }}
- node_version: ${{ github.event.action == 'labeled' && 20 }} - node_version: ${{ contains('labeled,ready_for_review', github.event.action) && 20 }}
steps: steps:
- name: Checkout - name: Checkout
@ -55,4 +55,4 @@ jobs:
- name: Publish preview - 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') 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

Loading…
Cancel
Save