message: chore: add auto release
diff: @@ -9,7 +9,6 @@ on:
  paths-ignore:
  - "**/CHANGELOG.md"
  - "**/package.json"
  - - "docs/**"
  pull_request:
  workflow_dispatch:
  jobs:
  @@ -20,27 +19,28 @@ jobs:
  if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
  steps:
  - uses: actions/checkout@v2
  +
  - name: Set Node Version
  uses: actions/setup-node@v2
  with:
  node-version: 16
  +
  - name: Install dependencies
  - run: npm i
  + run: npm install
  - name: Bootstrap
  run: npm run bootstrap
  - - name: Generate docs
  - run: npm run build:docs
  + - name: Test
  + run: npm run test
  +
  + - name: Build
  + run: npm run build
  - - name: Semantic Release
  + - name: "Release: Version"
  run: lerna version --conventional-commits --conventional-prerelease --yes
  +
  + - name: "Release: Publish"
  + run: lerna publish from-git
  env:
  - GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
  - NODE_OPTIONS: --max-old-space-size=4096
  - SEMANTIC_RELEASE_PACKAGE: ${{ github.event.repository.name }} # Always needed
  - with:
  - extra_plugins: |
  - @semantic-release/changelog
  - @semantic-release/git
  