Skip to content

Yejiin21의 스토리북 배포 #67

Yejiin21의 스토리북 배포

Yejiin21의 스토리북 배포 #67

Workflow file for this run

name: Storybook Deployment
run-name: ${{ github.actor }}의 스토리북 배포
on:
pull_request:
branches:
- develop
permissions:
pull-requests: write
contents: read
jobs:
storybook:
runs-on: ubuntu-20.04
outputs:
status: ${{ job.status }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Cache dependencies
id: cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Dependency install
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- name: Publish to Chromatic
id: chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Comment PR
uses: thollander/actions-comment-pull-request@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
message: '📖storybook: ${{ steps.chromatic.outputs.storybookUrl }}'