<commit_before>general:
  branches:
    ignore:
      - gh-pages
  artifacts:
    - "artifacts/"
dependencies:
  override:
    - nvm install 6
    - nvm use 6 && nvm alias default 6
    - which node
    # TODO test yarn with node_modules installed via npm2, npm3 and latest stable yarn
    - npm install
    - go get github.com/tcnksm/ghr
    - ./scripts/bootstrap-env-ubuntu.sh
test:
  override:
    - node -v
    - npm run lint
    - npm run test-ci
    - npm run check-lockfile
    - npm run build-dist
    - node ./scripts/build-webpack.js
    - ./scripts/build-deb.sh

deployment:
  release:
    tag: /v[0-9]+(\.[0-9]+)*/
    owner: yarnpkg
    commands:
      - ghr --username yarnpkg --repository yarn --token $KPM_CIRCLE_RELEASE_TOKEN v$(node dist/bin/yarn --version) artifacts/
      # TODO(#548): All artifacts should come from artifacts/ directory
      - ghr --username yarnpkg --repository yarn --token $KPM_CIRCLE_RELEASE_TOKEN v$(node dist/bin/yarn --version) dist/yarn-v*.tar.gz
      - ghr --username yarnpkg --repository yarn --token $KPM_CIRCLE_RELEASE_TOKEN v$(node dist/bin/yarn --version) dist/yarn-$(node dist/bin/yarn --version).js
      - ghr --username yarnpkg --repository yarn --token $KPM_CIRCLE_RELEASE_TOKEN v$(node dist/bin/yarn --version) dist/yarn-legacy-$(node dist/bin/yarn --version).js
      - npm publish<commit_msg>fix ghr install<commit_after>general:
  branches:
    ignore:
      - gh-pages
  artifacts:
    - "artifacts/"
dependencies:
  override:
    - nvm install 6
    - nvm use 6 && nvm alias default 6
    - which node
    # TODO test yarn with node_modules installed via npm2, npm3 and latest stable yarn
    - npm install
    - go get github.com/tcnksm/ghr
    - curl -o ghr.zip https://github.com/tcnksm/ghr/releases/download/v0.5.0/ghr_v0.5.0_linux_amd64.zip
    - unzip ghr.zip
    - ./scripts/bootstrap-env-ubuntu.sh
test:
  override:
    - node -v
    - npm run lint
    - npm run test-ci
    - npm run check-lockfile
    - npm run build-dist
    - node ./scripts/build-webpack.js
    - ./scripts/build-deb.sh

deployment:
  release:
    tag: /v[0-9]+(\.[0-9]+)*/
    owner: yarnpkg
    commands:
      - ./ghr --username yarnpkg --repository yarn --token $KPM_CIRCLE_RELEASE_TOKEN v$(node dist/bin/yarn --version) artifacts/
      # TODO(#548): All artifacts should come from artifacts/ directory
      - ./ghr --username yarnpkg --repository yarn --token $KPM_CIRCLE_RELEASE_TOKEN v$(node dist/bin/yarn --version) dist/yarn-v*.tar.gz
      - ./ghr --username yarnpkg --repository yarn --token $KPM_CIRCLE_RELEASE_TOKEN v$(node dist/bin/yarn --version) dist/yarn-$(node dist/bin/yarn --version).js
      - ./ghr --username yarnpkg --repository yarn --token $KPM_CIRCLE_RELEASE_TOKEN v$(node dist/bin/yarn --version) dist/yarn-legacy-$(node dist/bin/yarn --version).js
      - npm publish
{'fraction_non_alphanumeric': 0.13009845288326302, 'fraction_numerical': 0.011251758087201125, 'mean_word_length': 2.47799511002445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1712621', 'n_tokens_mistral': 1039, 'n_tokens_neox': 969, 'n_words': 253}