Build failed question

Hi there, I am new to Travis.ci

And I got one newbie question:
My build

deploy.sh

travis.yml

If i run “bash deploy.sh” locally everithing goes fine.

But my travis build fails every time, like it don’t wait for “npm run build” execution or it doesn’t change directory to /dist before running “git push”.

What am I doing wrong?