Restore packages when staging, move grunt build to before_build.