From b5750ac6678e18e67527db6877d7474f0e5fa1fe Mon Sep 17 00:00:00 2001 From: Paolo Ricciuti Date: Thu, 24 Oct 2024 23:18:15 +0200 Subject: [PATCH] chore: setup `pkg.pr.new` (#13891) * chore: setup `pkg.pr.new` * chore: let's try with this --- .github/workflows/pkg.pr.new.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pkg.pr.new.yml diff --git a/.github/workflows/pkg.pr.new.yml b/.github/workflows/pkg.pr.new.yml new file mode 100644 index 0000000000..76736782a0 --- /dev/null +++ b/.github/workflows/pkg.pr.new.yml @@ -0,0 +1,24 @@ +name: Publish Any Commit +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 18.x + cache: pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Build + run: pnpm build + + - run: pnpx pkg-pr-new publish --compact --no-template './packages/svelte'