From 5a64f3540dc4729fc724e6e94aa9aa1875ac63a1 Mon Sep 17 00:00:00 2001 From: Alec Blance <17378596+AlecBlance@users.noreply.github.com> Date: Sun, 20 Oct 2024 18:38:56 +0800 Subject: [PATCH] ci: :construction_worker: add changeset cli --- .github/workflows/publish.yml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eaeb8c1..bf4076d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,7 +28,7 @@ jobs: id: changesets uses: changesets/action@v1 with: - publish: pnpm build + publish: pnpm run release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload assets diff --git a/package.json b/package.json index 0b23e80..04fc557 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "type": "module", "scripts": { "build": "tsc -b && vite build", - "lint": "eslint . && tsc" + "lint": "eslint . && tsc", + "release": "pnpm run build && changeset publish" }, "dependencies": { "@radix-ui/react-accordion": "^1.2.0",