Skip to content

Merge pull request #131 from abusix/pla-1226-update-jsdom-in-hailstorm #131

Merge pull request #131 from abusix/pla-1226-update-jsdom-in-hailstorm

Merge pull request #131 from abusix/pla-1226-update-jsdom-in-hailstorm #131

Workflow file for this run

name: Build and Publish storybook to GitHub Pages
on:
push:
branches: [main]
jobs:
build-and-deploy-storybook:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install and Build 🔧
run: | # Install npm packages and build the Storybook files
npm install
npm run build:storybook
- name: Add .nojekyll file to static folder 📁
run:
| # Add .nojekyll file to the static folder to prevent 404 errors (files with _ prefix are not copied to the static folder)
touch storybook-static/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
BRANCH: gh-pages-storybook # The branch the action should deploy to.
FOLDER: storybook-static # The folder that the build-storybook script generates files.