From f2f85b3661ff5c2de1659e1380ef619162e81376 Mon Sep 17 00:00:00 2001 From: JeongUk Park Date: Sat, 25 Jul 2026 01:46:25 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20npm=20=EB=B0=B0=ED=8F=AC=20=EC=85=8B?= =?UTF-8?q?=EC=97=85=20(publishConfig=C2=B7=EB=A6=B4=EB=A6=AC=EC=8A=A4=20?= =?UTF-8?q?=EC=9B=8C=ED=81=AC=ED=94=8C=EB=A1=9C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 24 ++++++++++++++++++++++++ package.json | 15 ++++++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..3482125 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: publish +# GitHub Release를 publish하면 npm에 배포한다. NPM_TOKEN 시크릿 필요. +on: + release: + types: [published] + +permissions: + contents: read + id-token: write # npm provenance(OIDC)에 필요 + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: https://registry.npmjs.org + - run: npm ci + - run: npm test + - run: npm publish --provenance + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 7b30983..488d638 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,9 @@ "files": [ "dist" ], + "publishConfig": { + "access": "public" + }, "engines": { "node": ">=20" }, @@ -17,13 +20,23 @@ "typecheck": "tsc --noEmit", "test": "vitest run", "dev": "tsx src/cli/index.ts", + "prepublishOnly": "npm run build", "prepare": "husky" }, "repository": { "type": "git", "url": "git+https://github.com/followingseas/pilot.git" }, - "keywords": [], + "keywords": [ + "rutter", + "ai-agents", + "coding-agent", + "mcp", + "cli", + "conventions", + "policy", + "claude-code" + ], "author": "", "license": "MIT", "bugs": {