Skip to content

Commit 47b992f

Browse files
authored
housekeeping: fail React flavor release if a step fails (via #5466)
* housekeeping: fail React flavor release if a step fails * Update run.sh
1 parent 60397d6 commit 47b992f

File tree

1 file changed

+4
-1
lines changed
  • flavors/swagger-ui-react/release

1 file changed

+4
-1
lines changed

flavors/swagger-ui-react/release/run.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# Deploy `swagger-ui-react` to npm.
22

3+
# https://www.peterbe.com/plog/set-ex
4+
set -ex
5+
36
# Parameter Expansion: http://stackoverflow.com/questions/6393551/what-is-the-meaning-of-0-in-a-bash-script
47
cd "${0%/*}"
58

6-
mkdir ../dist
9+
mkdir -p ../dist
710

811
# Copy UI's dist files to our directory
912
cp ../../../dist/swagger-ui.js ../dist

0 commit comments

Comments
 (0)