From 0bceaafbe55d87af5a100e8e0bdfd601ab4e12c7 Mon Sep 17 00:00:00 2001 From: johniexu <281910378@qq.com> Date: Thu, 26 Jun 2025 17:19:02 +0800 Subject: [PATCH] =?UTF-8?q?cd:=20=E6=B7=BB=E5=8A=A0=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E5=88=B0=20pkg.pr.new=20=E7=9A=84=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish_pkgpr.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/publish_pkgpr.yml diff --git a/.github/workflows/publish_pkgpr.yml b/.github/workflows/publish_pkgpr.yml new file mode 100644 index 0000000..1e0538d --- /dev/null +++ b/.github/workflows/publish_pkgpr.yml @@ -0,0 +1,24 @@ +name: Publish to pkg.pr.new +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "npm" + + - name: Install dependencies + run: npm install + + - name: Build + run: npm run build + + - run: npx pkg-pr-new publish \ No newline at end of file