image: node:latest stages: - build - build_documentation build: stage: build script: - npm install --force --global yarn - yarn install - yarn test - yarn build build-documentation: stage: build_documentation script: - yarn docs:build - npm install --force --global yarn - yarn install - yarn install -D react-styleguidist - yarn docs:build artifacts: paths: - styleguide only: - master