File tree Expand file tree Collapse file tree 5 files changed +26
-14
lines changed Expand file tree Collapse file tree 5 files changed +26
-14
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push : {}
5
+ pull_request_target :
6
+ paths :
7
+ - ' src/**'
8
+ - ' test/**'
9
+ - ' *.json'
10
+
4
11
5
12
jobs :
6
13
build :
7
14
strategy :
8
15
matrix :
9
- node-version : [18.x, 20 .x, 21 .x]
16
+ node-version : [18.x, 22 .x, 24 .x]
10
17
platform :
11
18
- os : ubuntu-latest
12
19
shell : bash
Original file line number Diff line number Diff line change @@ -29,22 +29,21 @@ jobs:
29
29
runs-on : ubuntu-latest
30
30
steps :
31
31
- name : Checkout
32
- uses : actions/checkout@v3
32
+ uses : actions/checkout@v4
33
33
- name : Use Nodejs ${{ matrix.node-version }}
34
- uses : actions/setup-node@v3
34
+ uses : actions/setup-node@v4
35
35
with :
36
- node-version : 18 .x
36
+ node-version : 20 .x
37
37
- name : Install dependencies
38
38
run : npm install
39
39
- name : Generate typedocs
40
40
run : npm run typedoc
41
-
42
41
- name : Setup Pages
43
- uses : actions/configure-pages@v3
42
+ uses : actions/configure-pages@v4
44
43
- name : Upload artifact
45
- uses : actions/upload-pages-artifact@v1
44
+ uses : actions/upload-pages-artifact@v3
46
45
with :
47
46
path : ' ./docs'
48
47
- name : Deploy to GitHub Pages
49
48
id : deployment
50
- uses : actions/deploy-pages@v1
49
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 3
3
"include" : [
4
4
" ../src/**/*.ts" ,
5
5
" ../src/**/*.cts" ,
6
- " ../src/**/*.tsx"
6
+ " ../src/**/*.tsx" ,
7
+ " ../src/**/*.json"
7
8
],
8
9
"exclude" : [
9
- " ../src/**/*.mts"
10
+ " ../src/**/*.mts" ,
11
+ " ../src/package.json"
10
12
],
11
13
"compilerOptions" : {
12
14
"outDir" : " ../.tshy-build/commonjs"
Original file line number Diff line number Diff line change 3
3
"include" : [
4
4
" ../src/**/*.ts" ,
5
5
" ../src/**/*.mts" ,
6
- " ../src/**/*.tsx"
6
+ " ../src/**/*.tsx" ,
7
+ " ../src/**/*.json"
8
+ ],
9
+ "exclude" : [
10
+ " ../src/package.json"
7
11
],
8
- "exclude" : [],
9
12
"compilerOptions" : {
10
13
"outDir" : " ../.tshy-build/esm"
11
14
}
Original file line number Diff line number Diff line change 320
320
},
321
321
"type" : " module" ,
322
322
"main" : " ./dist/commonjs/index.js" ,
323
- "types" : " ./dist/commonjs/index.d.ts"
323
+ "types" : " ./dist/commonjs/index.d.ts" ,
324
+ "module" : " ./dist/esm/index.js"
324
325
}
You can’t perform that action at this time.
0 commit comments