Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish storybook to a public github page on every change in components or stories #413

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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/[email protected]

- name: Install and Build
run: |
npm ci
npm run storybook:build

- name: Deploy
uses: JamesIves/[email protected]
with:
branch: github-pages
folder: storybook-static
2 changes: 2 additions & 0 deletions src/stories/button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { Meta, StoryObj } from '@storybook/react';
import { Button } from 'papi-components';

// test

const meta: Meta<typeof Button> = {
title: 'Basics/Button',
component: Button,
Expand Down
Loading