From cc1d11bc3b48ba5798d644e9dfb372a211590d2b Mon Sep 17 00:00:00 2001 From: Pan Jie Date: Sat, 4 Dec 2021 20:12:21 +0800 Subject: [PATCH] chore: add preversion script Remove generate and build steps in cd workflow --- .github/workflows/cd.yml | 4 ---- package.json | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index ca14be3..c68414d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -26,10 +26,6 @@ jobs: - name: Install if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }} run: yarn install - - name: Generate icons - run: yarn generate - - name: Build package - run: yarn build - name: Release run: yarn semantic-release env: diff --git a/package.json b/package.json index a2d47ae..03e769b 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "scripts": { "build": "father-build", "generate": "svgr --template templates/svgTemplate.ts --out-dir src/icons -- svgs", + "preversion": "yarn generate && yarn build", "storybook": "yarn generate && start-storybook -p 6006", "storybook:build": "yarn generate && yarn build && build-storybook", "test": "echo \"Error: run tests from root\" && exit 1" @@ -82,4 +83,4 @@ "type": "git", "url": "git+ssh://github.com/growingio/gio-design-icons.git" } -} +} \ No newline at end of file