Skip to content

[Feat] 활동 블록 태그 추가 모달 handoverNote와 연결 (#424) #70

[Feat] 활동 블록 태그 추가 모달 handoverNote와 연결 (#424)

[Feat] 활동 블록 태그 추가 모달 handoverNote와 연결 (#424) #70

name: 'Storybook Deployment'
on:
push:
branches:
- develop
jobs:
build-and-deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Pnpm
uses: pnpm/action-setup@v4
with:
version: 9.1.3
- name: Cache node modules
id: cache-node
uses: actions/cache@v4
with:
path: |
**/node_modules
key: ${{ runner.OS }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.OS }}-node-
- name: Install dependencies
if: steps.cache-node.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile
- name: Build tiki ui
id: cache-tiki-ui
uses: actions/cache@v4
with:
path: packages/ui/dist
key: ${{runner.os}}-ui-${{hashFiles('packages/ui/package.json', 'packages/ui/src/**')}}
restore-keys: ${{runner.os}}-ui-
- name: Build tiki icon
id: cache-tiki-icon
uses: actions/cache@v4
with:
path: packages/icon/dist
key: ${{runner.os}}-icon-${{hashFiles('packages/icon/package.json', 'packages/icon/src/**')}}
restore-keys: ${{runner.os}}-icon-
- name: Check ui cache hit
if: steps.cache-tiki-ui.outputs.cache-hit != 'true'
run: pnpm --filter ui build
- name: Check icon cache hit
if: steps.cache-tiki-icon.outputs.cache-hit != 'true'
run: pnpm --filter icon build
- name: Build
run: pnpm --filter client build-storybook
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
publish_dir: apps/client/storybook-static
github_token: ${{ secrets.GITHUB_TOKEN }}