File tree Expand file tree Collapse file tree 9 files changed +1748
-0
lines changed Expand file tree Collapse file tree 9 files changed +1748
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ pull_request :
9
+ branches :
10
+ - main
11
+
12
+ jobs :
13
+ lint :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+
18
+ - name : Install pnpm
19
+ uses : pnpm/action-setup@v2
20
+
21
+ - name : Set node
22
+ uses : actions/setup-node@v3
23
+ with :
24
+ node-version : 18.x
25
+ cache : pnpm
26
+
27
+ - name : Install
28
+ run : pnpm install
29
+
30
+ - name : Lint
31
+ run : pnpm lint
32
+
33
+ typecheck :
34
+ runs-on : ubuntu-latest
35
+ steps :
36
+ - uses : actions/checkout@v3
37
+
38
+ - name : Install pnpm
39
+ uses : pnpm/action-setup@v2
40
+
41
+ - name : Set node
42
+ uses : actions/setup-node@v3
43
+ with :
44
+ node-version : 18.x
45
+ cache : pnpm
46
+
47
+ - name : Install
48
+ run : pnpm install
49
+
50
+ - name : Typecheck
51
+ run : pnpm typecheck
52
+
53
+ test :
54
+ runs-on : ${{ matrix.os }}
55
+
56
+ strategy :
57
+ matrix :
58
+ node : [16.x, 18.x]
59
+ os : [ubuntu-latest, windows-latest, macos-latest]
60
+ fail-fast : false
61
+
62
+ steps :
63
+ - uses : actions/checkout@v3
64
+
65
+ - name : Install pnpm
66
+ uses : pnpm/action-setup@v2
67
+
68
+ - name : Set node ${{ matrix.node }}
69
+ uses : actions/setup-node@v3
70
+ with :
71
+ node-version : ${{ matrix.node }}
72
+ cache : pnpm
73
+
74
+ - name : Install
75
+ run : pnpm install
76
+
77
+ - name : Build
78
+ run : pnpm build
79
+
80
+ - name : Test
81
+ run : pnpm test
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ permissions :
4
+ contents : write
5
+
6
+ on :
7
+ push :
8
+ tags :
9
+ - ' v*'
10
+
11
+ jobs :
12
+ release :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+ with :
17
+ fetch-depth : 0
18
+
19
+ - name : Install pnpm
20
+ uses : pnpm/action-setup@v2
21
+
22
+ - name : Set node
23
+ uses : actions/setup-node@v3
24
+ with :
25
+ node-version : 18.x
26
+ cache : pnpm
27
+
28
+ - run : npx changelogithub
29
+ env :
30
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change
1
+ node_modules
2
+ .DS_Store
3
+ dist
4
+ * .log
Original file line number Diff line number Diff line change
1
+ {
2
+ "editor.formatOnSave" : true
3
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " my-ts-lib" ,
3
+ "version" : " 0.0.0" ,
4
+ "description" : " My awesome typescript library" ,
5
+ "publishConfig" : {
6
+ "access" : " public"
7
+ },
8
+ "files" : [
9
+ " dist"
10
+ ],
11
+ "main" : " ./dist/index.js" ,
12
+ "module" : " ./dist/index.mjs" ,
13
+ "exports" : {
14
+ "require" : " ./dist/index.js" ,
15
+ "import" : " ./dist/index.mjs"
16
+ },
17
+ "types" : " ./dist/index.d.ts" ,
18
+ "scripts" : {
19
+ "build-fast" : " tsup src/index.ts --format cjs,esm" ,
20
+ "build" : " pnpm run build-fast -- --dts-resolve" ,
21
+ "test" : " vitest run" ,
22
+ "prepublishOnly" : " pnpm run build"
23
+ },
24
+ "prettier" : {
25
+ "singleQuote" : true ,
26
+ "semi" : false ,
27
+ "trailingComma" : " all"
28
+ },
29
+ "license" : " MIT" ,
30
+ "devDependencies" : {
31
+ "prettier" : " 2.8.8" ,
32
+ "tsup" : " 6.7.0" ,
33
+ "typescript" : " 5.0.4" ,
34
+ "vitest" : " 0.30.1"
35
+ }
36
+ }
You can’t perform that action at this time.
0 commit comments