Skip to content

fix: 여행 북마크 타입 네임 변경 #177

fix: 여행 북마크 타입 네임 변경

fix: 여행 북마크 타입 네임 변경 #177

Workflow file for this run

name: Storybook Preview
on:
pull_request:
branches: [main]
permissions:
contents: write
pages: write
deployments: write
id-token: write
issues: write
pull-requests: write
jobs:
storybook-preview:
runs-on: ubuntu-latest
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('**/package-lock.json') }}-storybook
- name: 종속성 설치
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Node.js 설정
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
- 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 }}
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:
message: |
💄 Storybook: ${{ needs.storybook-preview.outputs.storybook_url }}
🕖 Update: ${{ needs.storybook-preview.outputs.currnent_time }}