This repository has been archived by the owner on May 19, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add error fallbacks for release script
- Loading branch information
Showing
4 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
#!/bin/sh | ||
YELLOW_COLOR="\u001b[33m" | ||
GREEN_COLOR="\033[0;32m" | ||
RED_COLOR='\033[0;31m' | ||
BLUE_COLOR='\033[0;34m' | ||
RESET_COLOR="\u001b[39m" | ||
SPACER=" " | ||
|
||
printf "${YELLOW_COLOR}Checking for errors...${RESET_COLOR}" | ||
source scripts/check.sh &>/dev/null || exit 1 | ||
printf "\r${GREEN_COLOR}No errors found.${RESET_COLOR}${SPACER}\n" | ||
printf "${YELLOW_COLOR}Building distribution bundles...${RESET_COLOR}" | ||
source scripts/build.sh &>/dev/null || exit 1 | ||
printf "\r${GREEN_COLOR}Built distribution bundles.${SPACER}${RESET_COLOR}\n${YELLOW_COLOR}Run \`np\` to publish.${RESET_COLOR}" | ||
printf "${YELLOW_COLOR}β Checking for errors...${RESET_COLOR}" | ||
source scripts/check.sh &>/dev/null || (printf "\r${RED_COLOR}β Error during checks. Run \`sh scripts/check.sh\`.${RESET_COLOR}\n" && exit 1) | ||
printf "\r${GREEN_COLOR}β No errors found.${RESET_COLOR}${SPACER}\n" | ||
printf "${YELLOW_COLOR}β Building distribution bundles...${RESET_COLOR}" | ||
source scripts/build.sh &>/dev/null || (printf "\r${RED_COLOR}β Error during build. Run \`sh scripts/build.sh\`.${RESET_COLOR}\n" && exit 1) | ||
printf "\r${GREEN_COLOR}β Built distribution bundles.${SPACER}${RESET_COLOR}\n${BLUE_COLOR}β Run \`np\` to publish.${RESET_COLOR}\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/bin/sh | ||
YELLOW_COLOR="\u001b[33m" | ||
RED_COLOR='\033[0;31m' | ||
RESET_COLOR="\u001b[39m" | ||
|
||
if [[ $npm_execpath != *"yarn"* ]]; then | ||
printf "${YELLOW_COLOR}This repository requires Yarn 1.x for scripts to work properly.${RESET_COLOR}\n\n" | ||
printf "${RED_COLOR}β Lucia requires Yarn 1.x for scripts to work properly.${RESET_COLOR}\n\n" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters