mirror of
https://github.com/primer/css.git
synced 2024-12-02 07:53:06 +03:00
b7fd01d5a1
* 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>
11 lines
336 B
Bash
Executable File
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
|