<commit_before>name: merge

on:
  push:
    branches: [ main ]

  workflow_dispatch:

concurrency: prr:deploy

jobs:
  merge:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [16.x]

    steps:
    - uses: actions/checkout@v2
      with: 
        ref: 'next'
        fetch-depth: 0

    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v2
      with:
        node-version: ${{ matrix.node-version }}
        cache: 'npm'
    - run: npm ci
    - run: npm run build --if-present
    - run: npx pr-release merge --target main --source next --commit --force --clean --changelog --compact
      env:
        GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

    # The following will publish the release to npm
#    - run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc  
#      name: Setup NPM Auth                                                
#      env:                                                                
#        NPM_TOKEN: ${{ secrets.NPM_TOKEN }}                               
#    - run: npm publish                                                    
#      name: Publish                                                       







<commit_msg>enable auto release<commit_after>name: merge

on:
  push:
    branches: [main]

  workflow_dispatch:

concurrency: prr:deploy

jobs:
  merge:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [16.x]

    steps:
      - uses: actions/checkout@v2
        with:
          ref: "next"
          fetch-depth: 0

      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node-version }}
          cache: "npm"
      - run: npm ci
      - run: npm run build --if-present
      - run: npx pr-release merge --target main --source next --commit --force --clean --changelog --compact
        env:
          GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

      - run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
        name: Setup NPM Auth
        env:
          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
      - run: npm publish
        name: Publish
{'fraction_non_alphanumeric': 0.11513761467889909, 'fraction_numerical': 0.0045871559633027525, 'mean_word_length': 1.3655097613882863, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3799137', 'n_tokens_mistral': 683, 'n_tokens_neox': 642, 'n_words': 162}