Skip to content

Commit 6224f33

Browse files
authored
chore: add autofix.ci
1 parent 6af3366 commit 6224f33

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/autofix-ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: autofix.ci
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
pull_request: {}
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
autofix:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Setup PNPM
19+
run: corepack enable
20+
21+
- name: Setup node
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: 18.x
25+
cache: pnpm
26+
27+
- name: Setup
28+
run: npm i -g @antfu/ni
29+
30+
- name: Install
31+
run: ni --no-frozen-lockfile
32+
33+
- name: Stub
34+
run: nr stub
35+
36+
- name: Lint and fix
37+
run: nr lint:fix
38+
39+
- uses: autofix-ci/action@8bc06253bec489732e5f9c52884c7cace15c0160

0 commit comments

Comments
 (0)