Skip to content

Commit 40901ee

Browse files
authored
ci: use pkg-pr-new to publish preview packages (#687)
1 parent 33efbcb commit 40901ee

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/pkg-pr.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish Approved Pull Requests
2+
on:
3+
pull_request_review:
4+
types: [submitted]
5+
6+
jobs:
7+
approved:
8+
if: github.event.review.state == 'APPROVED'
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- run: corepack enable
13+
- uses: actions/checkout@v4
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
cache: "pnpm"
19+
- name: Install dependencies
20+
run: pnpm install
21+
22+
- name: Publish preview package
23+
run: pnpx pkg-pr-new publish

0 commit comments

Comments
 (0)