add static method to clear all data (#66) #20
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: Publish Storybook | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
# Recommended if you intend to make multiple deployments in quick | |
# succession. | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] | |
with: | |
persist-credentials: false | |
- name: Install and Build 🔧 | |
# Install npm packages and build the Storybook files# Install npm | |
# packages and build the Storybook files | |
run: | | |
yarn install | |
yarn run storybook:build | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# The branch the action should deploy to. | |
BRANCH: gh-pages | |
# The output folder used by build-storybook script | |
FOLDER: storybook-static | |
# Automatically remove deleted files from the deploy branch | |
CLEAN: true |