Adicionando documentação. #1
This file contains hidden or 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 Preview | ||
|
Check failure on line 1 in .github/workflows/storybook-preview.yml
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - "main" | ||
| - "dev" | ||
| jobs: | ||
| build-and-publish: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| STORYBOOK_DEPLOY_URL: ${{ steps.publish.outputs.url || 'https://storybook.preview' }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: setup node | ||
| uses: pnpm/action-setup@v2 | ||
| with: | ||
| version: 20 | ||
| run_install: true | ||
| - name: Build Storybook | ||
| run: pnpm storybook:build | ||
| - name: Build Docusaurus site | ||
| run: pnpm docs:site:build | ||
| - name: Generate catalog with canonical URLs | ||
| run: | | ||
| export CATALOG_CANONICAL_BASE="${{ env.STORYBOOK_DEPLOY_URL }}" | ||
| pnpm generate:catalog | ||
| - name: Upload artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: storybook-artifacts | ||
| path: | | ||
| storybook-static | ||
| docs-site/build | ||
| component-catalog.json | ||
| llms.txt | ||