fix: use flex center to get rid of modal blur #135
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: Build and Deploy Components Doc | |
on: | |
push: | |
paths: ['packages/components/src/**'] | |
pull_request: | |
paths: ['packages/components/src/**'] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build-theme: | |
name: Build @toeverything/theme | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
id: pnpm-install | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'pnpm' | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
name: Setup pnpm cache | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install --no-frozen-lockfile | |
- name: Build @toeverything/components | |
run: pnpm run storybook:build | |
working-directory: packages/components | |
- name: Add nojekyll | |
run: touch ./packages/components/storybook-static/.nojekyll | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
FOLDER: ./packages/components/storybook-static | |
CLEAN: true |