Skip to content

refactor(flat-pages): add merge account (#1997) #222

refactor(flat-pages): add merge account (#1997)

refactor(flat-pages): add merge account (#1997) #222

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