File tree 9 files changed +61
-182
lines changed
packages/starlight-openapi
9 files changed +61
-182
lines changed Original file line number Diff line number Diff line change
1
+ name : autofix.ci
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+ workflow_call :
11
+
12
+ permissions :
13
+ contents : read
14
+
15
+ concurrency :
16
+ cancel-in-progress : true
17
+ group : ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
18
+
19
+ jobs :
20
+ autofix :
21
+ name : Format code
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - name : Checkout
25
+ uses : actions/checkout@v4
26
+
27
+ - name : Install pnpm
28
+ uses : pnpm/action-setup@v4
29
+ with :
30
+ version : 8.6.12
31
+
32
+ - name : Install Node.js
33
+ uses : actions/setup-node@v4
34
+ with :
35
+ cache : pnpm
36
+ node-version : 18
37
+ registry-url : ' https://registry.npmjs.org'
38
+
39
+ - name : Install dependencies
40
+ run : pnpm install
41
+
42
+ - name : Format code
43
+ run : pnpm format
44
+
45
+ - name : Run autofix
46
+ uses : autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
47
+ with :
48
+ fail-fast : false
Original file line number Diff line number Diff line change 1
- name : Integration
1
+ name : integration
2
2
3
3
on :
4
4
push :
9
9
- main
10
10
workflow_call :
11
11
12
+ concurrency :
13
+ cancel-in-progress : true
14
+ group : ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
15
+
12
16
jobs :
13
17
lint_test :
14
18
name : Lint & Test
Original file line number Diff line number Diff line change 1
- name : Release
1
+ name : release
2
2
3
3
on :
4
4
push :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ export default defineConfig({
85
85
} ,
86
86
] ,
87
87
social : {
88
+ blueSky : 'https://bsky.app/profile/hideoo.dev' ,
88
89
github : 'https://github.com/HiDeoo/starlight-openapi' ,
89
90
} ,
90
91
title : 'Starlight OpenAPI' ,
Original file line number Diff line number Diff line change 11
11
"build" : " astro build" ,
12
12
"preview" : " astro preview" ,
13
13
"astro" : " astro" ,
14
- "lint" : " prettier -c --cache . && eslint . --cache --max-warnings=0"
14
+ "lint" : " eslint . --cache --max-warnings=0" ,
15
+ "format" : " prettier -w --cache --ignore-unknown ."
15
16
},
16
17
"dependencies" : {
17
18
"@astrojs/starlight" : " 0.26.0" ,
Original file line number Diff line number Diff line change 8
8
"scripts" : {
9
9
"test" : " pnpm --stream -r test" ,
10
10
"lint" : " pnpm -r lint" ,
11
- "prepare " : " husky install "
11
+ "format " : " pnpm -r format "
12
12
},
13
13
"devDependencies" : {
14
14
"@hideoo/eslint-config" : " 3.0.0" ,
15
15
"@hideoo/prettier-config" : " 2.0.0" ,
16
16
"@hideoo/tsconfig" : " 2.0.1" ,
17
17
"astro" : " 4.11.1" ,
18
18
"eslint" : " 8.56.0" ,
19
- "husky" : " 8.0.3" ,
20
- "lint-staged" : " 14.0.1" ,
21
19
"prettier" : " 3.0.3" ,
22
20
"prettier-plugin-astro" : " 0.12.0" ,
23
21
"typescript" : " 5.1.6"
41
39
"type" : " git" ,
42
40
"url" : " https://github.com/HiDeoo/starlight-openapi.git"
43
41
},
44
- "bugs" : " https://github.com/HiDeoo/starlight-openapi/issues" ,
45
- "lint-staged" : {
46
- "*" : [
47
- " prettier -w -u --cache" ,
48
- " eslint --cache --no-warn-ignored --max-warnings=0"
49
- ]
50
- }
42
+ "bugs" : " https://github.com/HiDeoo/starlight-openapi/issues"
51
43
}
Original file line number Diff line number Diff line change 12
12
},
13
13
"scripts" : {
14
14
"test" : " playwright install --with-deps chromium && playwright test" ,
15
- "lint" : " prettier -c --cache . && eslint . --cache --max-warnings=0"
15
+ "lint" : " eslint . --cache --max-warnings=0" ,
16
+ "format" : " prettier -w --cache --ignore-unknown ."
16
17
},
17
18
"dependencies" : {
18
19
"@readme/openapi-parser" : " 2.5.0" ,
You can’t perform that action at this time.
0 commit comments