Skip to content

Feat/dialog 컴포넌트 추가 #64

Feat/dialog 컴포넌트 추가

Feat/dialog 컴포넌트 추가 #64

Workflow file for this run

name: "storybook Chromatic 배포"
on:
pull_request:
branches:
- main
push:
branches:
- main # 메인 브랜치에 푸시될 때 실행
paths:
- "apps/storybook/**"
jobs:
storybook-preview:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 9.10.0
- uses: actions/setup-node@v4
with:
cache: "pnpm"
cache-dependency-path: "pnpm-lock.yaml"
node-version-file: ".nvmrc"
- name: Install dependencies
run: pnpm install
- name: Build UI Package
run: pnpm --filter @repo/ui build
- name: Build Storybook
run: pnpm --filter storybook build-storybook
- name: publish to chromatic
id: chromatic
continue-on-error: true
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_TOKEN }}
onlyChanged: true
autoAcceptChanges: true
externals: apps/**
workingDir: apps/storybook
- name: 현재 시간 가져오기
uses: josStorer/get-current-time@v2
id: current-time
with:
format: "YYYY년 MM월 DD일 HH시 mm분 ss초"
utcOffset: "+09:00"
outputs:
storybook_url: ${{ steps.chromatic.outputs.storybookUrl }}
current_time: ${{ steps.current-time.outputs.formattedTime }}
github-bot-storybook:
runs-on: ubuntu-latest
needs: [storybook-preview]
steps:
- name: PR 코멘트 남기기
uses: thollander/actions-comment-pull-request@v2
with:
comment_tag: ${{github.event.number}}-storybook
message: |
💄 Storybook: ${{ needs.storybook-preview.outputs.storybook_url }}
🕖 Update: ${{ needs.storybook-preview.outputs.current_time }}