-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 792 Bytes
/
cr.yml
File metadata and controls
32 lines (26 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: CR
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
on:
pull_request:
branches: [main]
types: [opened, synchronize, labeled, ready_for_review]
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true
jobs:
release:
if: ${{ !github.event.pull_request.draft && contains(github.event.pull_request.labels.*.name, 'cr-tracked') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4.0.0
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: pnpm
- run: pnpm install
- run: pnpm build
- run: pnpm dlx pkg-pr-new publish --compact --no-template --pnpm