<commit_before><commit_msg>Setup publishing workflow<commit_after>name: Release

on:
  push:
    branches:
      - master

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Use Node.js 12.x
      uses: actions/setup-node@v1
      with:
        node-version: 12.x
        registry-url: 'https://npm.pkg.github.com'
    - name: Cache yarn cache
      uses: actions/cache@v1
      with:
        path: ~/.cache/yarn
        key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
        restore-keys: |
          ${{ runner.os }}-yarn-
    - name: Install and build
      run: |
        yarn --frozen-lockfile
        yarn compile
      env:
        CI: true
    - name: Test and lint
      run: |
        DISPLAY=:10 yarn test
        yarn lint
    - name: Publish with vsce
      run: |
        # Try to publish and ignore any errors (that version was already published)
        vsce publish -p $VSCE_TOKEN || true
      env:
        VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
{'fraction_non_alphanumeric': 0.12298959318826869, 'fraction_numerical': 0.010406811731315043, 'mean_word_length': 1.8907103825136613, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5910958', 'n_tokens_mistral': 360, 'n_tokens_neox': 350, 'n_words': 91}