Skip to content

chore: Add pkg.pr.new to preview PRs outside of NPM #1

chore: Add pkg.pr.new to preview PRs outside of NPM

chore: Add pkg.pr.new to preview PRs outside of NPM #1

Workflow file for this run

name: Preview Approved Pull Requests
on:
pull_request:
types: [opened, synchronize]
pull_request_review:
types: [submitted]
jobs:
deploy-preview:
name: Deploy preview version to pkg.pr.new
if: github.event.review.state == 'APPROVED' || contains(github.event.pull_request.author_association, 'MEMBER')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version-file: .node-version
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Publish to pkg.pr.new
run: pnpx pkg-pr-new publish --compact './packages/nuqs'