fix(prefer-find-by): ensure autofix keeps assertion (#1107) #137
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: Release | |
| on: | |
| push: | |
| branches: | |
| # semantic-release valid branches | |
| - '+([0-9])?(.{+([0-9]),x}).x' | |
| - 'main' | |
| - 'next' | |
| - 'next-major' | |
| - 'beta' | |
| - 'alpha' | |
| concurrency: | |
| group: release | |
| cancel-in-progress: false | |
| permissions: | |
| id-token: write # to enable use of OIDC (npm trusted publishing and provenance) | |
| contents: write # to be able to publish a GitHub release | |
| issues: write # to be able to comment on released issues | |
| pull-requests: write # to be able to comment on released pull requests | |
| jobs: | |
| publish: | |
| name: Publish package | |
| runs-on: ubuntu-latest | |
| # Avoid publishing in forks | |
| if: github.repository == 'testing-library/eslint-plugin-testing-library' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| cache: 'pnpm' | |
| node-version-file: '.nvmrc' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build package | |
| run: pnpm run build | |
| - name: Release new version | |
| run: pnpm exec semantic-release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |