File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : autofix.ci # needed to securely identify the workflow
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : read
10+
11+ jobs :
12+ autofix :
13+ name : Lint
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+ - uses : pnpm/action-setup@v4
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : 20
21+ cache : pnpm
22+ - run : pnpm install
23+ - run : pnpm run lint:fix
24+ - uses : autofix-ci/action@main
Original file line number Diff line number Diff line change 1414jobs :
1515 lint :
1616 runs-on : ubuntu-latest
17+ if : github.event_name != 'pull_request'
1718 env :
1819 GITHUB_TOKEN : ${{ secrets.GitHub_TOKEN }}
1920 steps :
@@ -30,13 +31,10 @@ jobs:
3031 cache : pnpm
3132
3233 - name : Install deps
33- run : |
34- echo "public-hoist-pattern[]=@types*" >> .npmrc
35- pnpm install
34+ run : pnpm install
3635
3736 - name : Lint
38- run : |
39- pnpm lint:check
37+ run : pnpm lint:check
4038
4139 test :
4240 runs-on : ubuntu-latest
5654 cache : pnpm
5755
5856 - name : Install deps
59- run : |
60- echo "public-hoist-pattern[]=@types*" >> .npmrc
61- pnpm install
57+ run : pnpm install
6258
6359 - name : Test
6460 run : |
8278 cache : pnpm
8379
8480 - name : Install deps
85- run : |
86- pnpm install
81+ run : pnpm install
8782
8883 - name : Build Packages
8984 run : |
@@ -131,8 +126,7 @@ jobs:
131126 uses : actions/configure-pages@v5
132127
133128 - name : Install deps
134- run : |
135- pnpm install
129+ run : pnpm install
136130
137131 - name : Build Documentation
138132 run : pnpm docs:build
You can’t perform that action at this time.
0 commit comments