|
|
@ -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
|
|
|
|