refactor: prefer test
to check if the string matches the regexp
#620
This file contains 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: auto-fix | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
auto-fix: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- run: pnpm install | |
# lint | |
- name: Auto-fix | |
run: pnpm run lint:fix | |
# commit | |
- name: Commit | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: "ci(lint): auto-fix" | |
default_author: github_actions | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |