Merge pull request #314 from divyadaglia-unbxd/vulnerability_moderate #81
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
name: Storybook | |
on: | |
push: | |
branches: | |
- master | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
publish: | |
name: Publish 📖 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Pre-reqs | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 12 | |
- name: Setup Base | |
run: yarn install | |
- name: Build Base | |
run: yarn build | |
- name: Setup Demo | |
working-directory: ./demo | |
run: yarn install | |
- name: Build Storybook | |
run: yarn build-storybook | |
- name: Deploying storybook | |
uses: JamesIves/github-pages-deploy-action@4.1.1 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: storybook-static # The folder the action should deploy. | |