Skip to content

Merge branch 'release/0.18.0' #372

Merge branch 'release/0.18.0'

Merge branch 'release/0.18.0' #372

Workflow file for this run

name: Deploy to GitHub Pages
on:
pull_request:
branches: [develop]
types: [closed]
push:
branches: [main]
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 }}