diff --git a/.github/workflows/build_test.yaml b/.github/workflows/build_test.yaml index 8f81fe3..e6e6cca 100644 --- a/.github/workflows/build_test.yaml +++ b/.github/workflows/build_test.yaml @@ -7,7 +7,9 @@ on: jobs: build_test: + if: github.event.pull_request.head.ref != 'test-published-packages' runs-on: ubuntu-latest + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/.github/workflows/test_published_packages.yaml b/.github/workflows/test_published_packages.yaml new file mode 100644 index 0000000..90a5578 --- /dev/null +++ b/.github/workflows/test_published_packages.yaml @@ -0,0 +1,26 @@ +name: Test Published Packages + +on: + push: + branches: + - test-published-packages + +jobs: + build_test: + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'pnpm' + + - name: Install Dependencies + run: pnpm i + + - name: Build Package + run: pnpm build:playground diff --git a/package.json b/package.json index 61689fb..75319d4 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "prepare": "husky", "dev": "pnpm -r --parallel dev", "build": "pnpm -r build", + "build:playground": "pnpm --filter @tidbcloud/tisqleditor-playground... run build", "test": "jest", "release": "changeset publish" },