From 64a474e9e9a9ec3f41dd039d7bdf820b9925ce38 Mon Sep 17 00:00:00 2001 From: Northword Date: Thu, 19 Dec 2024 21:54:17 +0800 Subject: [PATCH] ci: add pkg-new-new --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/docs.yml | 9 --------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e10eac..9337205 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: - main jobs: - check: + ci: runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.GitHub_TOKEN }} @@ -41,6 +41,6 @@ jobs: run: | pnpm build - # - name: Run Test - # run: | - # pnpm test + - name: Run pkg-pr-new publish + if: github.event_name == 'pull_request' + run: pnpx pkg-pr-new publish diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 682b9a1..71b25df 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -59,15 +59,6 @@ jobs: with: path: docs/.vitepress/dist - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - needs: build - runs-on: ubuntu-latest - name: Deploy - steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4