From 4f1928a003ebf0c7685e2a3bed83db25cfa79ceb 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 ++++++++++++++++++++++++ package.json | 3 ++- 2 files changed, 26 insertions(+), 1 deletion(-) 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..fb3584e1 --- /dev/null +++ b/.github/workflows/pkg-pr-new.yaml @@ -0,0 +1,24 @@ +name: pkg-pr-new +on: [pull_request] + +jobs: + publish: + 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 run build + + - run: npx pkg-pr-new publish --comment=update diff --git a/package.json b/package.json index 7d4908c4..f68e0148 100644 --- a/package.json +++ b/package.json @@ -101,5 +101,6 @@ "limit": "7.0 kB", "path": "./dist/index.js" } - ] + ], + "packageManager": "npm@10.9.0+sha256.c12def16fe3efdc80b1e652d60903d807ac4b78b9e7c3e76f633f4b13a32897c" }