From a22d84dd8b22baf85d3926ad6c69831c4095d954 Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Thu, 7 Nov 2024 15:00:13 +0100 Subject: [PATCH] ci: publish packages on PR --- .github/workflows/pkg-pr.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/pkg-pr.yml diff --git a/.github/workflows/pkg-pr.yml b/.github/workflows/pkg-pr.yml new file mode 100644 index 0000000..4f32a7e --- /dev/null +++ b/.github/workflows/pkg-pr.yml @@ -0,0 +1,20 @@ +name: Publish Pull Requests +on: [push, pull_request] + +jobs: + pr-package: + 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: Build + run: pnpm build + - name: Publish preview package + run: pnpx pkg-pr-new publish --no-template