From 374c45fb5d0009222c8df63caca60d1f54aa734d Mon Sep 17 00:00:00 2001 From: hobbes7878 Date: Wed, 14 Jan 2026 11:31:05 +0000 Subject: [PATCH] adds pkg.pr.new workflow --- .github/workflows/pkg.pr.new.yaml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/pkg.pr.new.yaml diff --git a/.github/workflows/pkg.pr.new.yaml b/.github/workflows/pkg.pr.new.yaml new file mode 100644 index 00000000..71c28a19 --- /dev/null +++ b/.github/workflows/pkg.pr.new.yaml @@ -0,0 +1,32 @@ +name: Publish preview +on: + push: + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Build + run: pnpm build + + - name: Publish to pkg.pr.new + run: pnpm dlx pkg-pr-new publish --packageManager=pnpm