Skip to content

[fix] : 스토리북 명령어 수정 #4

[fix] : 스토리북 명령어 수정

[fix] : 스토리북 명령어 수정 #4

Workflow file for this run

name: 'Chromatic Deployment'
on:
push:
branches:
- dev
paths:
- 'src/stories/**'
- '.storybook/**'
- 'package.json'
- 'pnpm-lock.yaml'
jobs:
chromatic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Enable pnpm
run: corepack enable && corepack prepare pnpm@8.15.4 --activate
- name: Install dependencies
run: pnpm install
- uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
message:
needs: chromatic
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get last commit message
id: last_commit
run: echo "msg=$(git log -1 --pretty=format:'%s')" >> $GITHUB_OUTPUT
- uses: tsickert/discord-webhook@v5.3.0
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
content: |
🚨 **스토리북 업데이트**
📝 커밋 메시지: `${{ steps.last_commit.outputs.msg }}`