Skip to content

Commit

Permalink
patch: Exit 1 if docusaurus build fails
Browse files Browse the repository at this point in the history
Signed-off-by: Vipul Gupta (@vipulgupta2048) <[email protected]>
  • Loading branch information
vipulgupta2048 committed Aug 14, 2024
1 parent 9c37b68 commit 59c6648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ if [ "$DEV" = 'true' ] ; then
. /app/docusaurusify.sh
cd /app
echo "Serving locally..."
npm run start
npm run start
else
echo "Inputs: $1 $2 $3 $4"
. /app/docusaurusify.sh $1 $2 $3 $4
cd /app
npx docusaurus build
npx docusaurus build || exit 1
cp -rf /app/build /github/workspace
fi

0 comments on commit 59c6648

Please sign in to comment.