Merge pull request #362 from sanger/dependabot/npm_and_yarn/semver-5.7.2 #315
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |