stages: - pre_build - build install: stage: pre_build # cache: # paths: # - node_modules/ script: - echo "Installing packages" - cd /opt/threatbook/anzi-ui - git pull origin master-3 - yarn install rules: - if: '$CI_COMMIT_BRANCH == "master-3"' changes: - package.json tags: - anzi-ui danger: stage: pre_build variables: DANGER_GITLAB_API_TOKEN: "Bx1w1Nezp7kjWqQyawS8" DANGER_DISABLE_TRANSPILATION: "true" script: - echo "Danger your merge request" - cd /opt/threatbook/anzi-ui - git pull origin master-3 - yarn danger ci rules: - if: '$CI_COMMIT_BRANCH == "master-3"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' tags: - anzi-ui build: stage: build script: - echo "Building" - cd /opt/threatbook/anzi-ui - git pull origin master-3 - npm run styleguide:build rules: - if: '$CI_COMMIT_BRANCH == "master-3"' tags: - anzi-ui