From 76a3adadf4a43803d495333b5a78b1b060899b17 Mon Sep 17 00:00:00 2001 From: Ryo Igarashi Date: Sun, 20 Oct 2024 18:08:25 +0900 Subject: [PATCH] chore: Add pkg-pr-new --- .github/workflows/pkg-pr-new.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pkg-pr-new.yaml diff --git a/.github/workflows/pkg-pr-new.yaml b/.github/workflows/pkg-pr-new.yaml new file mode 100644 index 00000000..faddde3a --- /dev/null +++ b/.github/workflows/pkg-pr-new.yaml @@ -0,0 +1,24 @@ +name: Publish Pull Request +on: [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 ci + + - name: Build + run: npm build + + - run: npx pkg-pr-new publish