From fb119038e867cc06ce50894759bb84abce12836a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Fri, 23 Jun 2023 20:49:46 +0800 Subject: [PATCH] ci: move prepublish to package --- .github/workflows/release.yml | 3 --- package.json | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c0cc67..b2856a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,9 +31,6 @@ jobs: - name: Install Dependencies run: pnpm i - - name: PNPM build - run: pnpm run build - - name: Publish to NPM run: pnpm -r publish --access public --no-git-checks env: diff --git a/package.json b/package.json index 6da0aad..f37d007 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "lint": "eslint --cache .", "format": "prettier --write .", "typecheck": "tsc --noEmit", - "release": "bumpp -r" + "release": "bumpp -r", + "prepublishOnly": "npm run build" }, "license": "MIT", "keywords": [