Merge pull request #169 from Boggle-Boggle/develop #14
This file contains hidden or 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: 'Chromatic Deployment' | |
| on: | |
| push: | |
| branches: | |
| - staging | |
| paths: | |
| - '**/*.stories.*' | |
| 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 }}` | |
| 🌐 [구경하러가기](https://dev--686758463d9d0508e73ed980.chromatic.com/?path=/story/components-button--dafault) |