name: ✨ pkg.pr.new
on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

permissions:
  contents: read

jobs:
  build:
    name: Publish Test Packages
    runs-on: ubuntu-22.04
    if: ${{ github.repository == 'wxt-dev/wxt' }}
    steps:
      - name: Checkout
        uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

      - name: Setup
        uses: ./.github/actions/setup

      - name: Build All Packages
        run: pnpm buildc all

      - name: Publish
        run: pnpx pkg-pr-new publish --compact --pnpm './packages/*'
