Skip to content

Merge pull request #366 from sanger/stan-client/365 #319

Merge pull request #366 from sanger/stan-client/365

Merge pull request #366 from sanger/stan-client/365 #319

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy Storybook
on:
push:
branches: [devel]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout
- name: Export node version
id: node_version
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}
- name: Build storybook
run: |
yarn --frozen-lockfile --silent
yarn build:css
yarn build-storybook
- name: Deploy storybook
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: storybook-static
clean: true