Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] v2 from ant-design:v2 #3

Open
wants to merge 270 commits into
base: v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
270 commits
Select commit Hold shift + click to select a range
9c1045a
fix: handle annotations config transform bug (#2052)
ChenKun1997 Aug 22, 2023
bc23b97
fix: getCustom keys bug (#2051)
ai-qing-hai Aug 22, 2023
ece7bde
feat(charts): add radar (#2046)
ai-qing-hai Aug 22, 2023
d77fcf3
docs: add demos (#2054)
lxfu1 Aug 23, 2023
b6d5d3e
feat: add rose (#2053)
ai-qing-hai Aug 24, 2023
5116aa4
feat: add TinyLine & TinyColumn & TinyArea (#2045)
ChenKun1997 Aug 24, 2023
0d8b38f
feat: label and tooltip support react syntax (#2062)
lxfu1 Aug 28, 2023
c8a632e
docs: perfecting examples (#2064)
lxfu1 Aug 29, 2023
4455e28
chore: rename config (#2066)
lxfu1 Aug 29, 2023
e5a6e48
feat: Added a few more examples of pie chart. (#2067)
ancyloce Aug 29, 2023
bda8633
fix(scatter): shape 问题修复,以及更新 annotations (#2068)
ai-qing-hai Aug 29, 2023
0808bbc
feat: html render (#2071)
lxfu1 Aug 29, 2023
d7fa8c6
fix: down image api (#2070)
lxfu1 Aug 29, 2023
af8c536
Revert "feat: html render (#2071)" (#2072)
lxfu1 Aug 30, 2023
0ae73b9
fix: spec options (#2073)
lxfu1 Aug 30, 2023
f9870d8
fix(radar):雷达图的 area 配置,和 transform 新增的 area 配置冲突 (#2074)
ai-qing-hai Aug 30, 2023
14daaf2
fix(radar): 雷达图的 area 配置更新 (#2076)
ai-qing-hai Aug 30, 2023
baa9f3b
fix: config repeated (#2077)
lxfu1 Aug 30, 2023
abad903
docs: perfect dual-line (#2078)
i11I04i Aug 30, 2023
b8f04e2
feat: add Column & Bar examples (#2079)
ChenKun1997 Aug 30, 2023
ac2939d
feat: add conversion tag (#2080)
lxfu1 Aug 31, 2023
aa9e92a
chore: merge tiny charts into one folder (#2082)
ChenKun1997 Aug 31, 2023
94faaf3
feat: add column examples & add default interaction config (#2086)
ChenKun1997 Sep 1, 2023
d1c2515
chore: opt release actions (#2087)
lxfu1 Sep 1, 2023
742ce0b
docs: perfect dual-axes (#2092)
i11I04i Sep 4, 2023
e771a29
feat: add deep assign (#2090)
lxfu1 Sep 4, 2023
285b097
feat: add histogram chart (#2093)
ChenKun1997 Sep 4, 2023
e5d739b
chore: shape to shapeField of example configuration (#2095)
lxfu1 Sep 4, 2023
6c27dd5
feat: add waterfall chart (#2094)
lxfu1 Sep 4, 2023
b5af09b
chore: optimization label logic (#2096)
lxfu1 Sep 5, 2023
aff82fe
chore: 使用lodash get替换.运算符 (#2097)
ChenKun1997 Sep 5, 2023
4cdb472
feat: add heatmap chart (#2098)
lxfu1 Sep 5, 2023
c8f0320
feat(box): add box chartscharts (#2102)
ai-qing-hai Sep 6, 2023
b63e7ea
fix: annotation update (#2100)
lxfu1 Sep 7, 2023
d2a9b7b
chore: opt utils (#2105)
lxfu1 Sep 8, 2023
9abf1b5
feat(base): add 复合视图 案例 (#2104)
ai-qing-hai Sep 8, 2023
3695edc
fix: dependencies (#2106)
lxfu1 Sep 8, 2023
08a879e
fix: scripts
lxfu1 Sep 8, 2023
6aa5780
chore: rename rc-utils to util
lxfu1 Sep 8, 2023
70f1e7d
docs: add 10 demos (#2109)
i11I04i Sep 8, 2023
29f7bd2
fix: transform (#2111)
lxfu1 Sep 11, 2023
03bbe9c
feat: add progress chart (#2110)
zhangmo8 Sep 11, 2023
4ce8bde
chore: prefect percent demos (#2113)
lxfu1 Sep 11, 2023
518a6f3
docs: prefect duall-axes demos (#2115)
i11I04i Sep 13, 2023
cc09fe4
fix: padding configuration (#2117)
lxfu1 Sep 14, 2023
0390cf1
feat: add gauge chart (#2114)
liangchaofei Sep 18, 2023
646a70a
feat(v2): add Bullet plots (#2118)
ai-qing-hai Sep 18, 2023
02adbb0
fix: types (#2121)
lxfu1 Sep 18, 2023
586b263
chore: release alpha.1
lxfu1 Sep 18, 2023
557c833
fix(transform): 修复transformOptions 方法中子 children 配置被总配置覆盖的问题 (#2122)
ai-qing-hai Sep 18, 2023
2d4b363
chore: release alpha.2
lxfu1 Sep 19, 2023
e69fc90
fix(base): 修复 直接穿透 base 不需要 adaptor 的问题 (#2124)
ai-qing-hai Sep 19, 2023
db66835
chore: release alpha.3
lxfu1 Sep 19, 2023
0684439
Merge branch 'v2' of https://github.com/ant-design/ant-design-charts …
lxfu1 Sep 19, 2023
5f62200
fix(waterfall): 修复瀑布图在 scrollbar 重新配置后, Link 在前的问题 (#2126)
ai-qing-hai Sep 20, 2023
f2e47e5
feat(plots): add Liquid (#2128)
ai-qing-hai Sep 25, 2023
fec3f3f
chore: release 2.0.0-beta.0
lxfu1 Sep 25, 2023
6a4fe24
feat(plots): add treemap (#2132)
ai-qing-hai Sep 28, 2023
59d40f7
Update CONTRIBUTING.zh-CN.md
lxfu1 Oct 16, 2023
601752d
feat(plots): add WorlCloud (#2133)
ai-qing-hai Oct 16, 2023
895f6ff
Update CONTRIBUTING.zh-CN.md
lxfu1 Oct 17, 2023
3ac0a6f
feat: add tiny ring (#2142)
lxfu1 Oct 18, 2023
02a7ec2
docs: add basic sankey (#2116)
i11I04i Oct 18, 2023
18523bc
WIP: add Funnel (#2129)
xyuanbuilds Oct 18, 2023
9adc0e3
fix: funnel (#2150)
lxfu1 Oct 25, 2023
d208c94
chore: opt treemap (#2152)
lxfu1 Oct 26, 2023
f9cea69
chore: opt config (#2158)
lxfu1 Nov 2, 2023
3d5f8ce
chore: default options (#2159)
lxfu1 Nov 6, 2023
1798094
feat: bidirectional bar (#2170)
lxfu1 Nov 14, 2023
0834952
develop violin plot (#2176)
leffy-yan Nov 16, 2023
c5f6597
fix: type&annotations (#2177)
lxfu1 Nov 16, 2023
38e9136
docs: options (#2181)
lxfu1 Nov 17, 2023
6ba8222
feat:新增打包图circle packing (#2178)
dongxifan Nov 20, 2023
b861880
csv to json (#2187)
leffy-yan Nov 20, 2023
4981a63
docs: remove default theme (#2188)
lxfu1 Nov 20, 2023
a36c807
feat: add venn plots (#2179)
Canight Nov 20, 2023
a6f2571
feat: add radial-bar (#2189)
hsp-sz Nov 20, 2023
cd80c88
feat: 基础股票图 (#2192)
xyuanbuilds Nov 20, 2023
9963be7
docs: 修改缩略图地址 (#2190)
i11I04i Nov 20, 2023
884bad6
docs: special plot (#2193)
lxfu1 Nov 20, 2023
4c788fb
feat: 添加 venn 图类型 (#2191)
Canight Nov 20, 2023
aa7a762
chore: update dumi-theme-antv (#2194)
ai-qing-hai Nov 20, 2023
c1cd077
feat: add type (#2196)
hsp-sz Nov 21, 2023
83634be
doc: stock doc (#2197)
xyuanbuilds Nov 21, 2023
ac668bb
fix: buttons unify (#2198)
ai-qing-hai Nov 21, 2023
4a593c3
docs: examples review (#2199)
lxfu1 Nov 21, 2023
1b04455
fix: bar-stacked json (#2202)
leffy-yan Nov 21, 2023
41722f2
docs: image position (#2205)
ai-qing-hai Nov 21, 2023
df9d659
docs: image position (#2206)
ai-qing-hai Nov 21, 2023
e127d64
docs: 修改缩略图地址 (#2207)
i11I04i Nov 21, 2023
1d9bcdd
feat:更新打包图circlePacking演示demo文本展示 (#2204)
dongxifan Nov 21, 2023
149efc0
docs: improve the example (#2209)
lxfu1 Nov 21, 2023
1ceba1b
fix: tiny examples (#2210)
lxfu1 Nov 21, 2023
af845e0
fix: site engine (#2211)
lxfu1 Nov 21, 2023
d4a0242
docs:更新circlePacking中文名为捆绑图,并修改路径 (#2213)
dongxifan Nov 21, 2023
37defd4
feat:添加label显示 (#2216)
dongxifan Nov 22, 2023
f47ef19
docs: manual (#2218)
lxfu1 Nov 22, 2023
c490e64
chore: version update (#2219)
lxfu1 Nov 22, 2023
e2136ee
chore: version
lxfu1 Nov 22, 2023
176f160
fix: type annotations (#2221)
lxfu1 Nov 23, 2023
0283683
fix: resize (#2229)
lxfu1 Nov 23, 2023
eb5dab7
feat:添加捆绑图label显示图例 (#2228)
dongxifan Nov 23, 2023
19cda12
feat: mix (#2232)
lxfu1 Nov 24, 2023
79006dd
fix: CDN unavailable (#2236)
lxfu1 Nov 24, 2023
e4ae869
docs: annotations and events (#2239)
lxfu1 Nov 27, 2023
2cda0df
fix: spelling mistake (#2240)
lxfu1 Nov 28, 2023
3069c03
feat:新增自定义Padding距离类型捆绑图 (#2243)
dongxifan Nov 28, 2023
6ada53e
fix(liquid): ts issue fix (#2245)
ai-qing-hai Nov 28, 2023
772b7f0
style:全局prettier (#2247)
dongxifan Nov 28, 2023
8983b80
fix: update options (#2249)
lxfu1 Nov 28, 2023
85fe47e
fix: stack logic (#2250)
lxfu1 Nov 29, 2023
c31dc91
fix(plot): bullet TransformData optimize (#2251)
ai-qing-hai Nov 29, 2023
77a5f96
docs: update demos (#2252)
i11I04i Nov 29, 2023
3a94c29
feat:更新捆绑图自定义padding类型缩略图 (#2253)
dongxifan Nov 29, 2023
da86eea
ci: site actions (#2256)
lxfu1 Nov 29, 2023
39fd91e
docs: update group and stack example (#2258)
lxfu1 Nov 30, 2023
569fc30
fix: mark update (#2259)
lxfu1 Nov 30, 2023
4c2c25d
feat(plots): add sunburst (#2264)
ai-qing-hai Dec 4, 2023
2a3f7c3
fix: tooltip waver (#2272)
lxfu1 Dec 5, 2023
4dff51b
fix: tooltip react render (#2274)
lxfu1 Dec 5, 2023
6b31ae0
fix: react render (#2275)
lxfu1 Dec 5, 2023
5b263b7
chore: release (#2276)
lxfu1 Dec 5, 2023
5b4dfaf
docs: add custom legend example (#2278)
lxfu1 Dec 5, 2023
14ce87b
fix: create node (#2280)
lxfu1 Dec 6, 2023
2aefa13
Update tooltip example (#2281)
lxfu1 Dec 6, 2023
22dc7b3
fix: tooltip waver
lxfu1 Dec 6, 2023
36d3db1
docs: add scale doc (#2283)
ChenKun1997 Dec 7, 2023
d13611e
feat: 新增2.5D (#2284)
lxfu1 Dec 7, 2023
bec20ef
fix: clip (#2286)
lxfu1 Dec 8, 2023
6f4ad26
refactor(readme.md): :tada: update docs url (#2285)
gokhangunduz Dec 8, 2023
983e5ba
docs: add gantt demo (#2290)
ai-qing-hai Dec 11, 2023
324dccb
fix(plot): 修复 bullet update layout 后坐标不生效的问题 (#2289)
ai-qing-hai Dec 11, 2023
65ac421
fix: docs annotation (#2291)
lxfu1 Dec 12, 2023
2b36204
fix: auto fit (#2294)
lxfu1 Dec 12, 2023
53ce6d5
feat: container attributes (#2295)
lxfu1 Dec 13, 2023
6e80ebd
refactor: transform options (#2298)
lxfu1 Dec 15, 2023
56711f8
docs: add scatter demo (#2301)
i11I04i Dec 15, 2023
2b390bb
refactor: annotations (#2302)
lxfu1 Dec 15, 2023
b099680
chore: annotation (#2303)
lxfu1 Dec 18, 2023
b9690f7
release: change log (#2304)
lxfu1 Dec 18, 2023
aeb06fc
fix: connect null type (#2307)
lxfu1 Dec 22, 2023
dbde6e1
feat: measure text width (#2319)
lxfu1 Dec 25, 2023
925bede
fix: common data type (#2321)
lxfu1 Dec 27, 2023
67928ab
feat: link color field (#2323)
lxfu1 Dec 27, 2023
a4c3b29
Fix typo in useChart.ts (#2329)
daichuqi Jan 4, 2024
aaf19b2
feat: opt api (#2335)
lxfu1 Jan 4, 2024
9e47891
docs: colorField转化&demo配置优化 (#2334)
i11I04i Jan 4, 2024
bf1b7b6
docs: add three demos (#2325)
i11I04i Jan 5, 2024
9571ebb
docs: renderer (#2338)
lxfu1 Jan 8, 2024
3ef5c79
fix: the sum of data is equal to zero (#2336)
lxfu1 Jan 8, 2024
e316950
fix: coordinate (#2343)
lxfu1 Jan 8, 2024
e259732
changelog
lxfu1 Jan 8, 2024
ddbd465
docs: update demo (#2347)
i11I04i Jan 9, 2024
04eb944
fix: transform (#2348)
lxfu1 Jan 9, 2024
2ef8895
fix: mark background legend loss (#2350)
lxfu1 Jan 9, 2024
c224c7b
fix: heatmap examples (#2351)
lxfu1 Jan 10, 2024
c1c8e3b
feat: add mark background origin data field (#2352)
lxfu1 Jan 10, 2024
569feaf
fix: area type (#2355)
lxfu1 Jan 10, 2024
14ca883
fix: axis title update (#2356)
lxfu1 Jan 10, 2024
246ad65
fix: tooltip render (#2357)
lxfu1 Jan 10, 2024
9ef190a
changelog (#2358)
lxfu1 Jan 10, 2024
1c2073d
docs: add demo&document (#2360)
i11I04i Jan 11, 2024
58c8f5a
fix: tooltip debounce (#2362)
lxfu1 Jan 12, 2024
508513e
docs: add demo (#2367)
i11I04i Jan 15, 2024
14bfe2a
fix: empty array (#2363)
i11I04i Jan 16, 2024
8062d80
annotations range类型标注 文档修复 (#2372)
X-x-start Jan 16, 2024
2fa1696
fix: react element (#2373)
lxfu1 Jan 16, 2024
d26645e
fix: demo code (#2412)
lxfu1 Feb 19, 2024
e402135
fix: is valid element (#2398)
lxfu1 Feb 19, 2024
6e5fd1d
feat: 饼图联动 (#2384)
ChenKun1997 Feb 19, 2024
b61c8d0
fix: g version (#2420)
lxfu1 Feb 27, 2024
df7e8fc
feat(plot): add heatmap demo (#2446)
ai-qing-hai Mar 11, 2024
cd31b09
chore: update site (#2447)
lxfu1 Mar 11, 2024
136938e
chore: site workflows (#2448)
lxfu1 Mar 11, 2024
021d973
Update v2-site.yml (#2449)
lxfu1 Mar 13, 2024
6f5f5b3
fix(field): 修复 field 字段类型的错误 (#2450)
ai-qing-hai Mar 14, 2024
10ef30a
fix(plots): config shape undefined (#2463)
ai-qing-hai Mar 20, 2024
8a1ed91
feat: font size field (#2465)
lxfu1 Mar 20, 2024
8371d11
fix: transform (#2466)
lxfu1 Mar 20, 2024
c080823
changelog (#2468)
lxfu1 Mar 20, 2024
297a728
chore: update latest deps (#2496)
xiaoiver Apr 12, 2024
8525e25
changelog (#2503)
lxfu1 Apr 16, 2024
308f2b9
fix: Add missing ref and types of the wrapped component (#2471)
bigbigDreamer Apr 19, 2024
cc01490
fix: webpack v4 (#2511)
lxfu1 Apr 19, 2024
909b66c
chore: changelog (#2512)
lxfu1 Apr 19, 2024
790b637
fix: tiny chart auto fit (#2521)
lxfu1 Apr 25, 2024
aa3562c
chore: add case examples (#2526)
lxfu1 Apr 29, 2024
5d52c96
fix: webpack with export * as (#2530)
lxfu1 May 6, 2024
fe4bd86
chore: update interaction (#2569)
lxfu1 Jun 20, 2024
eb5937d
fix: dependence (#2571)
lxfu1 Jun 20, 2024
519580c
fix: flex (#2581)
lxfu1 Jul 3, 2024
813b7b3
Update README.md (#2584)
lxfu1 Jul 8, 2024
a09a421
fix: label的textAnchor属性更正为textAlign (#2587)
xinrunxie Jul 9, 2024
80e6e31
Update README.md
lxfu1 Jul 9, 2024
e1f21ba
fix: support ssr (#2608)
chenshuai2144 Jul 24, 2024
77995e5
Support-ssr (#2609)
chenshuai2144 Jul 24, 2024
e8e682c
fix: remove demo code paddingRight: 80 (#2594)
qhm1 Jul 24, 2024
126008d
chore: changelog (#2610)
lxfu1 Jul 24, 2024
c1050d1
fix: liquid (#2635)
lxfu1 Aug 5, 2024
463dcf1
Fix typo in (US) English title (#2611)
mjul Aug 5, 2024
43a2d9e
Webpack v4 (import * as issue) fix (#2613)
PaulBykov Aug 5, 2024
e52dfa2
Update overview.zh.md (#2618)
nanianlisao Aug 5, 2024
82f949f
changelog (#2636)
lxfu1 Aug 5, 2024
83aee0d
chore: demos (#2661)
lxfu1 Aug 22, 2024
713d127
fix: nextjs lodash esm (#2666)
lxfu1 Aug 26, 2024
11379e6
fix: data update (#2684)
lxfu1 Sep 6, 2024
387849e
chore: custom shape demo (#2685)
lxfu1 Sep 6, 2024
19d714d
fix: tooltip callback (#2686)
lxfu1 Sep 6, 2024
3990c0e
chore: changelog (#2687)
lxfu1 Sep 6, 2024
055dc02
chore: initialize @ant-design/graphs package (#2690)
yvonneyx Sep 9, 2024
6528d95
feat(graphs): add hierarchical graph (#2692)
yvonneyx Sep 11, 2024
bfcfa95
feat(graphs): add mindmap (#2697)
yvonneyx Sep 18, 2024
c3454f7
feat(graphs): add flow graph (#2701)
yvonneyx Sep 19, 2024
2da717a
feat(graphs): add network graph (#2700)
yvonneyx Sep 19, 2024
ff0bea6
feat(graphs): dendrogram (#2702)
yvonneyx Sep 23, 2024
aa86178
feat: add indented tree and refactor graphs (#2706)
yvonneyx Sep 24, 2024
5b3b09b
docs: add site demos (#2707)
yvonneyx Sep 24, 2024
c9eabf4
feat(graphs): flowchart (#2709)
yvonneyx Sep 24, 2024
4b5bbaf
chore: update asset build (#2711)
yvonneyx Sep 25, 2024
30aea23
fix: typo in tooltip.zh.md (#2696)
seesawz Sep 25, 2024
086b96e
chore: publish config (#2712)
yvonneyx Sep 25, 2024
767bfa3
refactor: simplify tree data conversion to graph data and adjust orga…
yvonneyx Sep 27, 2024
628330c
chore: update version (#2717)
yvonneyx Sep 27, 2024
261828a
chore: update site (#2730)
lxfu1 Oct 9, 2024
7787d26
feat: add product launch flow graph demo (#2727)
yvonneyx Oct 17, 2024
e286c15
docs: add Chinese documentation for the API of @ant-designs/graphs (#…
yvonneyx Oct 23, 2024
5983329
docs: add English api documents for graphs (#2742)
yvonneyx Oct 23, 2024
e647979
docs: update lint (#2744)
yvonneyx Oct 24, 2024
dd9af33
docs: auto-generate component list (#2749)
yvonneyx Oct 25, 2024
48d0eee
chore: update dumi-theme-antv version (#2752)
yvonneyx Oct 28, 2024
bf9f531
chore: release @ant-design/graphs version 2.0.0 (#2753)
yvonneyx Oct 29, 2024
05f693a
docs: 添加流向图 demos (#2758)
yvonneyx Nov 1, 2024
688b30e
chore: update version (#2763)
yvonneyx Nov 11, 2024
d8a2a24
docs: 图表添加功能类别标签 (#2767)
yvonneyx Nov 12, 2024
5a88e5e
feat: add fishbone diagram (#2773)
yvonneyx Nov 14, 2024
d8abaac
chore: update graphs version (#2775)
yvonneyx Nov 15, 2024
ff38dca
refactor: adjust default values for graph options (#2797)
yvonneyx Dec 10, 2024
936e409
chore: update version (#2798)
yvonneyx Dec 10, 2024
f096e24
chore: remove pnpm-lock.yaml (#2799)
yvonneyx Dec 12, 2024
26b7295
feat: support labelField in MindMap, IndentedTree, Fishbone, FlowGrap…
yvonneyx Dec 12, 2024
f4e013d
feat: support both tree data and graph data in tree graph scenarios (…
yvonneyx Dec 12, 2024
d1c2370
docs: add dumi mako config (#2805)
yvonneyx Dec 12, 2024
686623b
docs: improve graph options docs (#2806)
yvonneyx Dec 13, 2024
893eec3
chore: update version (#2808)
yvonneyx Dec 13, 2024
f1fac17
test(graph): e2e tests (#2812)
yvonneyx Dec 19, 2024
b8ba0e7
refactor: adapt the latest g6 (#2813)
Aarebecca Dec 20, 2024
3601b7f
chore: update version to 2.2.6 (#2814)
yvonneyx Dec 20, 2024
7549a6c
fix: bidirectional bar update failed (#2824)
lxfu1 Jan 2, 2025
a6f550a
fix: 修复对称柱状图无法修改属性的问题 (#2793)
czewail Jan 2, 2025
5be2d1c
TS提示类型过于复杂 (#2703)
czewail Jan 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
node-version: [latest]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 当具有 publish 标签的 PR 被合并时,自动发布新版本
# Automatically publish a new version when a PR with the publish label is merged
name: Auto Publish
on:
pull_request:
types: [closed]
branches:
- v2

jobs:
publish:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'publish') && github.event.pull_request.merged == true

steps:
- uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install pnpm and dependencies
uses: pnpm/action-setup@v4
with:
version: 9
run_install: true

- name: Build
run: npm run build

- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} & pnpm run publish
51 changes: 51 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Changesets
on:
push:
branches:
- master
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store

jobs:
version:
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [latest]
steps:
- name: checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: install pnpm
run: npm i pnpm@latest -g
- name: Setup npmrc
run: |
cat << EOF > "$HOME/.npmrc"
email=${NPM_EMAIL}
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_EMAIL: ${{ secrets.NPM_EMAIL }}
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: install dependencies
run: pnpm install
- name: create publish versions
uses: changesets/action@v1
with:
version: pnpm ci:version
commit: 'chore: release versions'
title: 'chore: release versions'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: publish to npm
run: pnpm run release
12 changes: 11 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeout-minutes: 15
strategy:
matrix:
node-version: [14.x]
node-version: [latest]
steps:
- name: checkout code repository
uses: actions/checkout@v3
Expand All @@ -30,6 +30,16 @@ jobs:
run: pnpm install
- name: test
run: pnpm test
- name: Run Playwright tests
run: |
pnpm exec playwright install chromium
pnpm exec playwright test --workers=10
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
# - name: Coveralls
# uses: coverallsapp/github-action@master
# with:
Expand Down
69 changes: 69 additions & 0 deletions .github/workflows/v2-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: V2 Site

on:
pull_request:
branches:
- v2 # default branch
env:
CI: true
PNPM_STORE: .pnpm-store

jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
node-version: [latest]
steps:
- name: checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Switch to site branch
run: git checkout -b gh-pages
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: install pnpm
run: npm i pnpm@latest -g
- name: Setup npmrc
run: |
cat << EOF > "$HOME/.npmrc"
email=${NPM_EMAIL}
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_EMAIL: ${{ secrets.NPM_EMAIL }}
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_STORE
- name: install dependencies
run: pnpm install
- name: build site
run: |
pnpm run build:lib
pnpm run build:site
- name: copy and delete files
run: |
find . -maxdepth 1 -type f -exec rm -f {} \;
cp -r site/dist/* ./
rm -rf site
rm -rf node_modules
rm -rf packages
rm -rf scripts
rm -rf public
rm -rf config
rm -rf template
rm -rf .changeset
rm -rf .github
rm -rf $PNPM_STORE
- name: commit changes
run: |
git config --local user.email "954055752@qq.com"
git config --local user.name "lxfu1"
git add .
git commit -m "chore: update site"
- name: push to gh-pages branch
run: git push origin gh-pages -f
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ node_modules
/npm-debug.log*
/yarn-error.log
/yarn.lock
/pnpm-lock.yaml
pnpm-lock.yaml
/package-lock.json
/pnpm-debug.log
/**/pnpm-debug.log
Expand All @@ -31,6 +31,12 @@ logs
#ide
.idea/
.eslintcache
.vscode/**

# temp
temp-gallery.md

# Tools
/test-results/
/playwright-report/
/playwright/.cache/
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ public-hoist-pattern[]=d3-*
public-hoist-pattern[]=@types/react
public-hoist-pattern[]=@types/react-dom
public-hoist-pattern[]=npm-run-all
public-hoist-pattern[]=rimraf
public-hoist-pattern[]=rimraf
public-hoist-pattern[]=@antv/*
3 changes: 1 addition & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
**/*.svg
**/*.html
*.md
package.json
.umi
.umi-production
Expand All @@ -11,4 +10,4 @@ dist
node_modules
*.ejs
gatsby-browser.js
*.min.js
*.min.js
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ const fabric = require('@umijs/fabric');
module.exports = {
...fabric.prettier,
printWidth: 120,
plugins: [require.resolve('prettier-plugin-organize-imports'), require.resolve('prettier-plugin-packagejson')],
};
Loading