File tree Expand file tree Collapse file tree 6 files changed +300
-15
lines changed Expand file tree Collapse file tree 6 files changed +300
-15
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ pull_request :
4
+ push :
5
+ branches :
6
+ - main
7
+ - " 8.0" # remove this after 8.0 is merged into main
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Install pnpm
17
+ uses : pnpm/action-setup@v4
18
+
19
+ - name : Install Node.js
20
+ uses : actions/setup-node@v4
21
+ with :
22
+ node-version : 22
23
+ cache : " pnpm"
24
+
25
+ - name : Install dependencies
26
+ run : pnpm install
27
+
28
+ - name : Lint
29
+ run : pnpm run lint
30
+
31
+ - name : Typecheck
32
+ run : pnpm run typecheck && pnpm run dev:typecheck
33
+
34
+ - name : Build
35
+ run : pnpm run build
36
+
37
+ - name : Publint
38
+ run : pnpm run publint
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v**"
7
+
8
+ permissions :
9
+ id-token : write
10
+ contents : write
11
+
12
+ jobs :
13
+ release :
14
+ runs-on : ubuntu-latest
15
+ environment : npm-publish
16
+
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Install pnpm
22
+ uses : pnpm/action-setup@v4
23
+
24
+ - name : Install Node.js
25
+ uses : actions/setup-node@v4
26
+ with :
27
+ node-version : 22
28
+ cache : pnpm
29
+
30
+ - name : Install dependencies
31
+ run : pnpm install
32
+
33
+ - name : Extract release notes
34
+ run : pnpm releaselog --format=notes ${{ github.ref_name }} > RELEASE_NOTES.md
35
+
36
+ - name : Create GitHub release
37
+ uses : softprops/action-gh-release@v2
38
+ with :
39
+ body_path : RELEASE_NOTES.md
40
+ prerelease : ${{ contains(github.ref_name, '-') }}
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
+
44
+ - name : Build
45
+ run : pnpm run build
46
+
47
+ - name : Get dist tag
48
+ id : tag
49
+ run : echo "tag=$(pnpm exec jiti scripts/dist-tag.ts '${{ github.ref_name }}')" >> $GITHUB_OUTPUT
50
+
51
+ - name : Publish to npm
52
+ run : npm i -g npm && pnpm publish --access public --tag ${{ steps.tag.outputs.tag }} --no-git-checks
Original file line number Diff line number Diff line change 10
10
"author" :
" GU Yiling <[email protected] >" ,
11
11
"scripts" : {
12
12
"dev" : " vite" ,
13
- "build" : " pnpm run docs && tsdown" ,
13
+ "build" : " tsdown" ,
14
14
"typecheck" : " tsc" ,
15
15
"lint" : " eslint . --fix" ,
16
16
"format" : " prettier . --write" ,
19
19
"dev:preview" : " vite preview" ,
20
20
"dev:typecheck" : " vue-tsc -p ./demo" ,
21
21
"docs" : " jiti ./scripts/docs.ts" ,
22
- "prepublishOnly " : " pnpm run typecheck && pnpm run dev:typecheck && pnpm run build && publint "
22
+ "release " : " pnpm run docs && bumpp --all "
23
23
},
24
24
"packageManager" :
" [email protected] " ,
25
25
"type" : " module" ,
48
48
"@vue/eslint-config-typescript" : " ^14.6.0" ,
49
49
"@vue/tsconfig" : " ^0.7.0" ,
50
50
"@vueuse/core" : " ^13.6.0" ,
51
+ "bumpp" : " ^10.2.2" ,
51
52
"comment-mark" : " ^2.0.1" ,
52
53
"echarts" : " ^6.0.0" ,
53
54
"echarts-gl" : " ^2.0.9" ,
61
62
"postcss-nested" : " ^7.0.2" ,
62
63
"prettier" : " ^3.6.2" ,
63
64
"publint" : " ^0.3.12" ,
65
+ "releaselog" : " ^6.0.3" ,
64
66
"tsdown" : " ^0.13.3" ,
65
67
"typescript" : " ^5.9.2" ,
66
68
"unplugin-raw" : " ^0.5.1" ,
You can’t perform that action at this time.
0 commit comments