Skip to content

[PEAUTY-171] 디자이너 마이페이지 api 연동 #83

[PEAUTY-171] 디자이너 마이페이지 api 연동

[PEAUTY-171] 디자이너 마이페이지 api 연동 #83

Workflow file for this run

name: Preview
on:
pull_request:
branches: ["sprint/**"]
permissions:
contents: write
pages: write
deployments: write
id-token: write
issues: write
pull-requests: write
jobs:
storybook-preview:
runs-on: ubuntu-20.04
steps:
- name: 저장소 체크아웃
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 캐시 종속성
id: cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}-storybook
- name: 종속성 설치
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install
# 기존 Chromatic Action
- name: Chromatic에 게시
id: chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
onlyChanged: true
autoAcceptChanges: true
- 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 }}
currnent_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.currnent_time }}