housekeeping: fail React flavor release if a step fails (via #5466)
* housekeeping: fail React flavor release if a step fails * Update run.sh
This commit is contained in:
@@ -1,9 +1,12 @@
|
|||||||
# Deploy `swagger-ui-react` to npm.
|
# Deploy `swagger-ui-react` to npm.
|
||||||
|
|
||||||
|
# https://www.peterbe.com/plog/set-ex
|
||||||
|
set -ex
|
||||||
|
|
||||||
# Parameter Expansion: http://stackoverflow.com/questions/6393551/what-is-the-meaning-of-0-in-a-bash-script
|
# Parameter Expansion: http://stackoverflow.com/questions/6393551/what-is-the-meaning-of-0-in-a-bash-script
|
||||||
cd "${0%/*}"
|
cd "${0%/*}"
|
||||||
|
|
||||||
mkdir ../dist
|
mkdir -p ../dist
|
||||||
|
|
||||||
# Copy UI's dist files to our directory
|
# Copy UI's dist files to our directory
|
||||||
cp ../../../dist/swagger-ui.js ../dist
|
cp ../../../dist/swagger-ui.js ../dist
|
||||||
|
|||||||
Reference in New Issue
Block a user