[#203] 지도 및 검색 페이지에서 공통 SearchBarFilter 컴포넌트 적용 및 디자인 개선 #49
Workflow file for this run
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
name: 'Deploy Storybook with Chromatic' | |
on: | |
pull_request: | |
paths: | |
- '**/*.stories.ts' | |
- '**/*.stories.tsx' | |
- '.storybook/**' | |
jobs: | |
chromatic: | |
name: Run Chromatic | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Generate environment variables | |
run: | | |
echo "NEXT_PUBLIC_BASE_URL=$NEXT_PUBLIC_BASE_URL" >> .env | |
env: | |
NEXT_PUBLIC_BASE_URL: ${{ secrets.NEXT_PUBLIC_BASE_URL }} | |
- name: Build Storybook | |
run: yarn build-storybook | |
- name: Run Chromatic | |
id: chromatic | |
uses: chromaui/action@latest | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Comment PR | |
uses: thollander/actions-comment-pull-request@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
message: '🚀storybook: ${{ steps.chromatic.outputs.storybookUrl }}' |