mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-04 02:34:43 +08:00
chore: make sure to use the correct node version
This commit is contained in:
parent
9659ebb1be
commit
57e2bbc86f
1 changed files with 7 additions and 0 deletions
|
@ -1,6 +1,13 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
# Load nvm
|
||||
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
|
||||
echo "Running tests before pushing to master..."
|
||||
npm run test
|
||||
|
|
Loading…
Reference in a new issue