Skip to content

Commit c76a6fe

Browse files
patch: Exit 1 if docusaurus build fails
Signed-off-by: Vipul Gupta (@vipulgupta2048) <vipulgupta2048@gmail.com>
1 parent 9c37b68 commit c76a6fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ if [ "$DEV" = 'true' ] ; then
55
. /app/docusaurusify.sh
66
cd /app
77
echo "Serving locally..."
8-
npm run start
8+
npm run start
99
else
1010
echo "Inputs: $1 $2 $3 $4"
1111
. /app/docusaurusify.sh $1 $2 $3 $4
1212
cd /app
13-
npx docusaurus build
13+
npx docusaurus build || exit 1
1414
cp -rf /app/build /github/workspace
1515
fi

0 commit comments

Comments
 (0)