Skip to content

Commit e857220

Browse files
committed
ci: autofix lint
1 parent 0005a57 commit e857220

2 files changed

Lines changed: 30 additions & 12 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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

.github/workflows/ci.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
jobs:
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
@@ -56,9 +54,7 @@ jobs:
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: |
@@ -82,8 +78,7 @@ jobs:
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

0 commit comments

Comments
 (0)