We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33efbcb commit 40901eeCopy full SHA for 40901ee
1 file changed
.github/workflows/pkg-pr.yml
@@ -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