Skip to content

Commit

Permalink
ci: use pkg-pr-new to publish preview packages
Browse files Browse the repository at this point in the history
  • Loading branch information
thebuilder committed Jul 8, 2024
1 parent 33efbcb commit f340711
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pkg-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Approved Pull Requests
on:
pull_request_review:
types: [submitted]

jobs:
approved:
if: github.event.review.state == 'APPROVED'
runs-on: ubuntu-latest

steps:
- run: corepack enable
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install

- name: Publish preview package
run: pnpx pkg-pr-new publish

0 comments on commit f340711

Please sign in to comment.