diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml new file mode 100644 index 0000000000..11a9a52ba6 --- /dev/null +++ b/.github/workflows/storybook.yml @@ -0,0 +1,26 @@ +name: Storybook +on: + push: + branches: + - Sebastian-ubs/issue411 + paths: ['src/stories/**', 'lib/papi-components/src/**'] + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2.3.1 + + - name: Install and Build + run: | + npm ci + npm run storybook:build + + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: github-pages + folder: storybook-static + token: ${{ secrets.PAGES_PAT }} + diff --git a/src/stories/button.stories.tsx b/src/stories/button.stories.tsx index f5569d8912..ae97c67a6a 100644 --- a/src/stories/button.stories.tsx +++ b/src/stories/button.stories.tsx @@ -1,6 +1,8 @@ import type { Meta, StoryObj } from '@storybook/react'; import { Button } from 'papi-components'; +// test4 + const meta: Meta = { title: 'Basics/Button', component: Button,