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