From 4b6b980f8725a677f64c768981102eb06645ccf1 Mon Sep 17 00:00:00 2001 From: Giuseppe Ciotola <30926550+gciotola@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:10:26 +0100 Subject: [PATCH] ci: add pkg-pr-new workflow --- .github/workflows/pkg-pr-new.yaml | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 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 000000000..407efc35c --- /dev/null +++ b/.github/workflows/pkg-pr-new.yaml @@ -0,0 +1,44 @@ +name: pkg-pr-new + +on: + push: + branches: + - "**" + - "!main" + - "!release" + tags-ignore: + - "v*" + pull_request: + types: [ready_for_review] + branches-ignore: + - release + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: pnpm 🧰 + uses: pnpm/action-setup@v3 + with: + version: 9.x + + - name: Node 🧰 + uses: actions/setup-node@v4 + with: + node-version: 22.x + + - name: Install 📦 + run: pnpm install --frozen-lockfile + + - name: Build elements 🛠 + run: pnpm build:elements + + - name: Publish 🚀 pkg.pr.new + run: | + npx pkg-pr-new publish './packages/app-elements' --no-template