-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
#!/bin/dash -e | ||
if ! command -v npm &>/dev/null; then | ||
$RUN echo "Could not find NPM." | ||
$RUN exit 1 | ||
fi | ||
|
||
# Install "globally" | ||
$RUN npm install -g commitizen | ||
$RUN npm install -g cz-conventional-changelog | ||
|
||
# Link the command from the nvm bin/ into our PATH so we don't have to screw | ||
# with nvm each time we want to use it | ||
if which cz >/dev/null; then | ||
$RUN mkdir -p "$HOME/.bin" | ||
$RUN ln -sf "$(which cz)" "$HOME/.bin/" | ||
fi | ||
# Install or upgrade | ||
$RUN brew "$( { [ -z "$UPGRADE" ] && echo "install"; } || echo "upgrade" )" "commitizen" |