1
1
mirror of https://github.com/primer/css.git synced 2024-12-24 14:42:26 +03:00
css/script/build-docs
Jon Rohan e1b3f4f4bd
Remove yarn in favor of npm (#2443)
* Remove yarn in favor of npm

* Create tame-turkeys-laugh.md

* Check in package-lock

* Revert

* Use auto commit action instead

* Cache and run npm ci

* Change node version to 18

* config legacy-peer-deps

* Update node version

* Also legacy peer deps in docs

* Ignore yarn.lock

* no-audit no-fund

* I dont know

* re-yarn the docs folder

* Update pakage-lock.json

* package lock

* Removing yarn from docs again

* Remove docs preview

* don't depend on deploy

* put back

---------

Co-authored-by: Katie Langerman <18661030+langermank@users.noreply.github.com>
2023-07-13 16:40:26 -07:00

15 lines
261 B
Bash
Executable File

#!/bin/bash -e
# Build the base project so we can pull out the JSON data
npm run dist
cp -rf dist docs
# Now build the docs site using that data
cd docs
if [ -n "$1" ]; then
CI=true npm run build:storybook preview
else
CI=true npm run build:storybook
fi