1
1
mirror of https://github.com/primer/css.git synced 2024-12-02 07:53:06 +03:00
css/docs/script/build-storybook.sh
Katie Langerman b7fd01d5a1
Deploy Storybook on Pull-Request (#1703)
* add build storybook

* Storybook deployment status (#1704)

* attempt 1

* nested path for storybook

* create duplicate deployment

* Different environment for storybook

* Take care of failure case as well

Co-authored-by: Siddharth Kshetrapal <siddharthkp@github.com>
2021-10-25 16:45:39 -07:00

11 lines
336 B
Bash
Executable File

#!/bin/bash
# Add base url to be able to serve static files
echo '<base href="/css/storybook/" />' >> .storybook/manager-head.html
# Build storybook inside docs
./node_modules/.bin/build-storybook -o public/storybook -s public/static
# Remove manager-head after build to not interfere with dev builds
rm .storybook/manager-head.html