Merge branch 'main' of https://github.com/mozilla/lilypad #46
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: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: 'npm' | |
cache-dependency-path: package-lock.json | |
- name: Deploy storybook to Github Pages | |
run: | | |
npm install --legacy-peer-deps | |
# Forcing legacy peer dep behavior, since we want to use a version of React | |
# that is newer than the one Storybook expects. | |
npm run deploy-storybook | |
env: | |
GH_TOKEN: Dashboard:${{ secrets.GITHUB_TOKEN }} |