Skip to content

Commit

Permalink
add storybook-deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchthorson committed Nov 30, 2023
1 parent 28447c9 commit ace2256
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/storybook-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Deploy Storybook to Github Pages
name: Build and deploy storybook
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install and Build
run: |
npm ci
npm run storybook-build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: storybook-static # The folder the action should deploy.

0 comments on commit ace2256

Please sign in to comment.