refactor(flat-pages): add join room history panel (#2077) #249
This file contains 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: Storybook | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- "packages/flat-components/src/**" | |
permissions: | |
contents: write | |
jobs: | |
deploy-storybook: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- name: Restore Cache | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: |- | |
# failure automatically retries 3 times | |
pnpm i || pnpm i || pnpm i | |
- name: Build Storybook | |
run: pnpm -F flat-components build | |
- name: Deploy Storybook | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./packages/flat-components/storybook-static |