Skip to content

Merge pull request #2 from troychaplin/feature/commtLint #21

Merge pull request #2 from troychaplin/feature/commtLint

Merge pull request #2 from troychaplin/feature/commtLint #21

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- develop
jobs:
build-and-deploy:
name: Build storybook and deploy to github pages
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '21.x'
- name: 📦 Install
run: npm install
- name: 🔧 Build
run: npm run build:storybook
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: storybook-static
branch: gh-pages
token: ${{ secrets.GITHUB_TOKEN }}