<commit_before>language: node_js
env:
- ASCIIDOCTOR_CORE_VERSION=v1.5.5
- ASCIIDOCTOR_CORE_VERSION=master
node_js:
- '4'
- '6'
- node
jdk:
- oraclejdk8
script:
- npm run lint
- npm run package
- npm run docs
- SKIP_BUILD=1 npm run examples
sudo: false

before_deploy:
- npm run dist

deploy:
- provider: npm
  skip_cleanup: true
  email: $NPM_USER_EMAIL
  api_key: $NPM_USER_API_KEY
  on:
    tags: true
    repo: asciidoctor/asciidoctor.js
    node: node<commit_msg>:rocket: Add GitHub Releases. (#345)<commit_after>language: node_js

env:
- ASCIIDOCTOR_CORE_VERSION=v1.5.5
- ASCIIDOCTOR_CORE_VERSION=master

node_js:
- '4'
- '6'
- node

jdk:
- oraclejdk8

script:
- npm run lint
- npm run package
- npm run docs
- SKIP_BUILD=1 npm run examples

sudo: false

before_deploy:
- >
  if ! [ "$BEFORE_DEPLOY_RUN" ]; then
    export BEFORE_DEPLOY_RUN=1;
    npm run dist;
    mkdir bin
    cd dist/;
    zip -r ../bin/asciidoctor.js.dist.zip .;
    tar -zcvf ../bin/asciidoctor.js.dist.tar.gz .;
    cd ..;
  fi

deploy:
- provider: npm
  skip_cleanup: true
  email: ${NPM_USER_EMAIL}
  api_key: ${NPM_USER_API_KEY}
  on:
    tags: true
    repo: asciidoctor/asciidoctor.js
    node: node
- provider: releases
  api_key: ${GITHUB_TOKEN}
  file: bin/asciidoctor.js.dist.*
  skip_cleanup: true
  file_glob: true
  on:
    repo: asciidoctor/asciidoctor.js
    tags: true
    node: node
{'fraction_non_alphanumeric': 0.11256354393609296, 'fraction_numerical': 0.013071895424836602, 'mean_word_length': 3.201219512195122, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2787530', 'n_tokens_mistral': 605, 'n_tokens_neox': 574, 'n_words': 131}