From e4e8ace22f714f50bf9a49100b33d82bef4e8067 Mon Sep 17 00:00:00 2001 From: eiei114 <60887155+eiei114@users.noreply.github.com> Date: Sat, 6 Jun 2026 11:50:47 +0900 Subject: [PATCH] Add CI workflow and integrate npm pack dry-run into check Co-authored-by: multica-agent --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eb769a0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +jobs: + check: + name: Typecheck, test, and pack dry-run + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + + - name: Setup Node.js + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e + with: + node-version: 24 + package-manager-cache: false + + - name: Install dependencies + run: npm ci + + - name: Run check + run: npm run check diff --git a/package.json b/package.json index 72cfc0d..7ab15e3 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "scripts": { "typecheck": "tsc --noEmit", "test": "node --import tsx --test \"test/**/*.test.ts\"", - "check": "npm run typecheck && npm test", + "check": "npm run typecheck && npm test && npm run release:npm:dry", "release:npm:dry": "npm pack --dry-run", "prepublishOnly": "npm run check" },