mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-03 10:13:17 +08:00
chore(husky): run nvm use
only when needed (#5524)
`nvm use` does not work on nvm-windows and there is no need for it to run everytime anyone pushes to any branch
This commit is contained in:
parent
f123617c33
commit
5c618082c7
1 changed files with 1 additions and 2 deletions
|
@ -6,9 +6,8 @@ export NVM_DIR="$HOME/.nvm"
|
|||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
|
||||
|
||||
nvm use
|
||||
|
||||
if [ $(git branch --no-color | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') = "master" ] && [ $(git remote get-url origin) = "https://github.com/monkeytypegame/monkeytype" ]; then
|
||||
nvm use
|
||||
echo "Running tests before pushing to master..."
|
||||
npm run test
|
||||
if [ $? -ne 0 ]; then
|
||||
|
|
Loading…
Reference in a new issue