Skip to content

Commit

Permalink
feat: storybook 배포
Browse files Browse the repository at this point in the history
  • Loading branch information
SEOKKAMONI committed Dec 15, 2023
1 parent 57eef72 commit 854bc84
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"test:coverage": "vitest --coverage",
"prepare": "husky install",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
"build-storybook": "storybook build",
"chromatic": "bash scripts/chromatic_publish.sh"
},
"dependencies": {
"@emotion/react": "^11.11.1",
Expand Down Expand Up @@ -48,6 +49,7 @@
"@vitest/browser": "^1.0.1",
"@vitest/coverage-istanbul": "^1.0.1",
"@vitest/coverage-v8": "^1.0.1",
"chromatic": "^10.1.0",
"eslint": "^8",
"eslint-config-next": "^14.0.3",
"eslint-config-prettier": "^9.1.0",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions scripts/chromatic_publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CHROMATIC_TOKEN=$(grep CHROMATIC_TOKEN .env | cut -d "=" -f2)
npx chromatic --project-token=$CHROMATIC_TOKEN
1 change: 1 addition & 0 deletions src/components/common/BottomSheet/BottomSheet.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const Default: StoryObj<BottomSheet> = {
onClick={() => {
setIsShowing(true);
}}
style={{ color: 'white' }}
>
Open!
</button>
Expand Down

0 comments on commit 854bc84

Please sign in to comment.