Skip to content

fixed: render bug, added comments #9

fixed: render bug, added comments

fixed: render bug, added comments #9

# Workflow name
name: Build and Publish Storybook to GitHub Pages
on:
push:
branches:
- "main" # change to the branch you wish to deploy from
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.build-publish.outputs.page_url }}
steps:
- name: checkout
uses: actions/checkout@v4
- id: filter
uses: dorny/paths-filter@v3
with:
base: ${{ github.ref }}
predicate-quantifier: 'every' # ignore the linting error, the option still exists but is not listed in the workflow inputs
filters: |
storybook:
- '!LICENSE'
- '!README.md'
- id: build-publish
if: ${{ steps.filter.outputs.storybook == 'true' }}
uses: bitovi/[email protected]
with:
install_command: yarn install # default: npm ci
build_command: yarn build-storybook # default: npm run build-storybook
path: storybook-static # default: dist/storybook
checkout: false