blob: 0452d29346c21044fe72012a848e5b5bd0b54272 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
name: UI Auto Lint
on:
push:
branches: ["main", "dev"]
paths:
- "packages/**"
workflow_dispatch:
permissions:
contents: write
jobs:
fix:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
cache-dependency-path: "pnpm-lock.yaml"
- run: pnpm install
- run: pnpm lint --fix
working-directory: packages/ui
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: auto format and lint fix [skip ci]"
file_pattern: "ui/**"
|