Skip to content

Merge pull request #27 from uclouvain/feature/OA-9022 #8

Merge pull request #27 from uclouvain/feature/OA-9022

Merge pull request #27 from uclouvain/feature/OA-9022 #8

Workflow file for this run

name: Storybook
on:
push:
branches:
- dev
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 14.x
- name: Cache npm dependencies
uses: actions/cache@v2
with:
path: '~/.npm'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: install latest npm
run: |
npm install -g npm &&
npm --version
- name: Install and Build 🔧
run: |
npm ci
npm run build-storybook
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: storybook-static # output folder from `npm run build-storybook`