forked from reactjs/react-modal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] prevent publish if an error occur.
- Loading branch information
Showing
3 changed files
with
50 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh | ||
|
||
NODE=`which node` | ||
NPM=`which npm` | ||
YARN=`which yarn` | ||
JQ=`which jq` | ||
|
||
echo $NODE $NPM $YARN $JQ | ||
|
||
if [[ ! -z "$NODE" ]]; then | ||
echo "Node is installed and it's version is: `$NODE --version`" | ||
else | ||
echo "Please, install node.js." | ||
exit 1 | ||
fi | ||
|
||
if [[ ! -z "$NPM" ]]; then | ||
echo "NPM is installed and it's version is: `$NPM --version`" | ||
else | ||
echo "Please, install npm." | ||
exit 1 | ||
fi | ||
|
||
if [[ ! -z "$YARN" ]]; then | ||
echo "yarn is installed and it's version is: `$YARN --version`" | ||
else | ||
echo "yarn is optional." | ||
fi | ||
|
||
if [[ ! -z "$JQ" ]]; then | ||
echo "jq is installed and it's version is: `$JQ --version`" | ||
else | ||
echo "jq is optional and used only for publish purpose." | ||
fi | ||
|
||
npm install -g gitbook-cli |
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