-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
chore: Storybook 배포 테스트
- Loading branch information
Showing
5 changed files
with
63 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: 'Chromatic Deployment' | ||
|
||
on: | ||
pull_request: | ||
branches: ['main'] | ||
paths: | ||
- '**.stories.tsx' | ||
- '**.stories.mdx' | ||
push: | ||
branches: ['main'] | ||
paths: | ||
- '**.stories.tsx' | ||
- '**.stories.mdx' | ||
|
||
jobs: | ||
chromatic: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Publish to Chromatic | ||
id: publish_chromatic | ||
uses: chromaui/action@latest | ||
with: | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
buildScriptName: build-storybook | ||
onlyChanged: true | ||
- name: comment PR | ||
uses: thollander/actions-comment-pull-request@v1 | ||
if: ${{ github.event_name == 'pull_request' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
message: '🚀 **storybook**: ${{ steps.publish_chromatic.outputs.storybookUrl }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
import BottomSheet from '.' | ||
|
||
const meta: Meta<typeof BottomSheet> = { | ||
title: 'components/common/BottomSheet', | ||
component: BottomSheet, | ||
tags: ['autodocs'], | ||
argTypes: { | ||
children: { | ||
description: 'BottomSheet type에 맞는 형태의 내용을 전달합니다', | ||
}, | ||
}, | ||
} | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof BottomSheet> | ||
|
||
export const Default: Story = { | ||
args: { | ||
children: 'BottomSheet', | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.