Skip to content

Commit

Permalink
chore: add preversion script
Browse files Browse the repository at this point in the history
Remove generate and build steps in cd workflow
  • Loading branch information
jack0pan committed Dec 4, 2021
1 parent ab1c50c commit cc1d11b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -82,4 +83,4 @@
"type": "git",
"url": "git+ssh://github.com/growingio/gio-design-icons.git"
}
}
}

1 comment on commit cc1d11b

@vercel
Copy link

@vercel vercel bot commented on cc1d11b Dec 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.