From 874cfd1e842fdf6dc1b187dcebd76e625672835f Mon Sep 17 00:00:00 2001 From: _Kerman Date: Mon, 12 Aug 2024 17:30:56 +0800 Subject: [PATCH] ci: add cr (#1778) Co-authored-by: Anthony Fu --- .github/workflows/cr.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/cr.yml diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml new file mode 100644 index 0000000000..b279374622 --- /dev/null +++ b/.github/workflows/cr.yml @@ -0,0 +1,25 @@ +# Continuous Releases provided by https://pkg.pr.new +name: CR (Continuous Releases) +on: [pull_request] + +jobs: + cr: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - uses: actions/setup-node@v4 + with: + node-version: lts/* + + - run: npm i -g @antfu/ni + - run: nci + + - name: Build + run: nr build + + - run: nlx pkg-pr-new publish './packages/create-app' './packages/client' './packages/create-theme' './packages/parser' './packages/slidev' './packages/types' --pnpm + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}