Files
starter-ts/.github/workflows/lint-fix.yml
T
2021-12-18 12:30:48 +08:00

35 lines
637 B
YAML

name: Lint Fix
on:
pull_request:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: 6.15.1
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16.x
registry-url: https://registry.npmjs.org/
cache: "pnpm"
- run: pnpm install
- name: Lint Fix
run: pnpm run lint -- --fix
- uses: EndBug/add-and-commit@v7
with:
message: 'chore: fix lint'