You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1 lines
17 KiB

"use strict";(self.webpackChunkantd=self.webpackChunkantd||[]).push([[5773],{277991:function(r,l,a){a.r(l);var _=a(502143),c=a(968521),h=a(720719),Z=a(28840),u=a(759907),g=a(828089),v=a(825673),p=a(902068),m=a(574399),b=a(863942),f=a(316073),y=a(24628),T=a(719260),w=a(956140),E=a(127179),P=a(905388),x=a(40428),k=a(606965),I=a(268696),D=a(587302),n=a(424128),O=a(249706),M=a(795127),L=a(116846),C=a(212039),A=a(73024),R=a(553913),i=a(606641),s=a(667294),e=a(370917);function o(){var d=(0,i.eL)(),t=d.texts;return(0,e.tZ)(i.dY,null,(0,e.tZ)(s.Fragment,null,(0,e.tZ)("div",{className:"markdown"},(0,e.tZ)("p",null,t[0].value,(0,e.tZ)(n.Z,{href:"https://github.com/Wxh16144",sourceType:"a"},t[1].value),t[2].value),(0,e.tZ)("h1",{id:"preface"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#preface",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Preface"),(0,e.tZ)("p",null,t[3].value),(0,e.tZ)("h2",{id:"what-is-github-actions"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#what-is-github-actions",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"What is GitHub Actions"),(0,e.tZ)("p",null,t[4].value,(0,e.tZ)("code",null,t[5].value),t[6].value,(0,e.tZ)(n.Z,{href:"https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions",sourceType:"a"},t[7].value),t[8].value),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,(0,e.tZ)("strong",null,t[9].value),t[10].value),(0,e.tZ)("li",null,(0,e.tZ)("strong",null,t[11].value),t[12].value),(0,e.tZ)("li",null,(0,e.tZ)("strong",null,t[13].value),t[14].value)),(0,e.tZ)("p",null,t[15].value,(0,e.tZ)("strong",null,t[16].value),t[17].value,(0,e.tZ)("strong",null,t[18].value),t[19].value,(0,e.tZ)("strong",null,t[20].value),t[21].value),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://docs.github.com/assets/cb-25535/mw-1000/images/help/actions/overview-actions-simple.webp",alt:"overview-actions-simple"})),(0,e.tZ)("h1",{id:"how-to-use"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#how-to-use",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"How to use"),(0,e.tZ)("p",null,t[22].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/tree/master/.github/workflows",sourceType:"a"},(0,e.tZ)("code",null,t[23].value)),t[24].value),(0,e.tZ)("p",null,t[25].value),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,(0,e.tZ)("strong",null,t[26].value),t[27].value),(0,e.tZ)("li",null,(0,e.tZ)("strong",null,t[28].value),t[29].value),(0,e.tZ)("li",null,(0,e.tZ)("strong",null,t[30].value),t[31].value),(0,e.tZ)("li",null,(0,e.tZ)("strong",null,t[32].value),t[33].value),(0,e.tZ)("li",null,(0,e.tZ)("strong",null,t[34].value),t[35].value,(0,e.tZ)(n.Z,{href:"https://d.umijs.org/",sourceType:"a"},t[36].value),t[37].value)),(0,e.tZ)("h2",{id:"issue"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#issue",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Issue"),(0,e.tZ)("p",null,t[38].value),(0,e.tZ)("h3",{id:"ensuring-the-quality-of-issues"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#ensuring-the-quality-of-issues",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Ensuring the Quality of Issues"),(0,e.tZ)("p",null,t[39].value,(0,e.tZ)(n.Z,{href:"http://new-issue.ant.design",sourceType:"a"},t[40].value),t[41].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/issues?q=label%3AInvalid",sourceType:"a"},t[42].value),t[43].value),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/32004925/231660945-509cf97c-43eb-4a1c-acd2-81eeedfe4a73.png",alt:"invalid-issue-preview"})),(0,e.tZ)("p",null,t[44].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/issues?q=label%3A%22%F0%9F%A4%94+Need+Reproduce%22+",sourceType:"a"},t[45].value),t[46].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/issues?q=label%3A%22%F0%9F%A4%94+Need+Reproduce%22+",sourceType:"a"},t[47].value),t[48].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/issues?q=label%3A%22help+wanted%22+",sourceType:"a"},t[49].value),t[50].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/da83561f9cb57b0eb03d18543d96393689f799be/.github/workflows/issue-labeled.yml",sourceType:"a"},t[51].value),t[52].value),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/32004925/231673201-c7376eeb-010b-46d0-a7d0-4c115d58f58c.png",alt:"need-reproduce-auto-comment-preview"})),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/32004925/231673404-60b248cd-823f-4d31-8fff-d95b02b35fee.png",alt:"help-wanted-auto-comment-preview"})),(0,e.tZ)("h3",{id:"common-issue-faq"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#common-issue-faq",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Common Issue FAQ"),(0,e.tZ)("p",null,t[53].value,(0,e.tZ)("code",null,t[54].value),t[55].value,(0,e.tZ)("code",null,t[56].value),t[57].value,(0,e.tZ)("code",null,t[58].value),t[59].value,(0,e.tZ)("code",null,t[60].value),t[61].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/da83561f9cb57b0eb03d18543d96393689f799be/.github/workflows/issue-open-check.yml#L43-L94",sourceType:"a"},t[62].value),t[63].value),(0,e.tZ)("h3",{id:"regular-issue-cleanup"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#regular-issue-cleanup",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Regular Issue Cleanup"),(0,e.tZ)("p",null,t[64].value),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/01a475af6d8ff4943fe4c91d04582120bf9b3a84/.github/workflows/issue-close-require.yml",sourceType:"a"},t[65].value),t[66].value,(0,e.tZ)("code",null,t[67].value),t[68].value,(0,e.tZ)("code",null,t[69].value),t[70].value),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/01a475af6d8ff4943fe4c91d04582120bf9b3a84/.github/workflows/issue-check-inactive.yml",sourceType:"a"},t[71].value),t[72].value,(0,e.tZ)("code",null,t[73].value),t[74].value,(0,e.tZ)("code",null,t[75].value),t[76].value,(0,e.tZ)("code",null,t[77].value),t[78].value)),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/32004925/234459079-db813907-503d-4405-801d-38e133c85996.png",alt:"inactive-issue-preview"})),(0,e.tZ)("h2",{id:"pull-request"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#pull-request",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Pull Request"),(0,e.tZ)("p",null,t[79].value,(0,e.tZ)(n.Z,{to:"/docs/blog/contributor-development-maintenance-guide",sourceType:"Link"},t[80].value),t[81].value),(0,e.tZ)("h3",{id:"pr-pre-test"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#pr-pre-test",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"PR Pre-test"),(0,e.tZ)("p",null,t[82].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/3d627eb475e32daf3a47731140685124d568a495/.github/workflows/pr-open-check.yml",sourceType:"a"},t[83].value),t[84].value),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/32004925/231672871-32689c30-1e0a-40fc-9237-9b9b4312f15c.png",alt:"pr-non-changelog-comment-preview"})),(0,e.tZ)("p",null,t[85].value,(0,e.tZ)("code",null,t[86].value),t[87].value),(0,e.tZ)("p",null,t[88].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/3d627eb475/.github/workflows/verify-files-modify.yml",sourceType:"a"},t[89].value),t[90].value,(0,e.tZ)("code",null,t[91].value),t[92].value,(0,e.tZ)("code",null,t[93].value),t[94].value,(0,e.tZ)("code",null,t[95].value),t[96].value),(0,e.tZ)("h3",{id:"code-style-checking"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#code-style-checking",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Code Style Checking"),(0,e.tZ)("p",null,t[97].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/dedbdfddafc0134219e391473c109c14766f413d/.github/workflows/test.yml#L52-L75",sourceType:"a"},t[98].value),t[99].value),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/32004925/234477805-5cf3cf89-6654-4329-882d-47b35964f6fc.png",alt:"eslint-ci-preview"})),(0,e.tZ)("h3",{id:"pr-deploy-preview"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#pr-deploy-preview",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"PR deploy preview"),(0,e.tZ)("p",null,t[100].value),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,t[101].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/c6a7dbc09e709a8905aaa6c073593a1fed6bea14/.github/workflows/preview-start.yml",sourceType:"a"},t[102].value),t[103].value)),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/32004925/231686636-eef933e6-2678-4e49-9552-babc50687644.png",alt:"preview-preparing.."})),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,t[104].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/b7d1d7cdbd888a1d73b3a3bf87bf4977e9b9bf91/.github/workflows/preview-build.yml#L52-L77",sourceType:"a"},t[105].value),t[106].value),(0,e.tZ)("li",null,t[107].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/c6a7dbc09e709a8905aaa6c073593a1fed6bea14/.github/workflows/preview-deploy.yml",sourceType:"a"},t[108].value),t[109].value,(0,e.tZ)("code",null,t[110].value),t[111].value,(0,e.tZ)(n.Z,{href:"https://surge.sh/",sourceType:"a"},t[112].value),t[113].value,(0,e.tZ)("code",null,t[114].value),t[115].value)),(0,e.tZ)("h3",{id:"other-reviews"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#other-reviews",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Other Reviews"),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,t[116].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/5dfce5443744271f778313c23eb8ec3a5af481f8/.github/workflows/size-limit.ym",sourceType:"a"},t[117].value),t[118].value),(0,e.tZ)("li",null,t[119].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/f7fd474cf8792ea01d03461d407c0edc11828a1c/.github/workflows/chatgpt-cr.yml",sourceType:"a"},t[120].value),t[121].value)),(0,e.tZ)("h2",{id:"unit-testing"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#unit-testing",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Unit Testing"),(0,e.tZ)("p",null,t[122].value),(0,e.tZ)("h3",{id:"build-testing"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#build-testing",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Build Testing"),(0,e.tZ)("p",null,t[123].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/master/.github/workflows/test.yml#L104-L138",sourceType:"a"},t[124].value),t[125].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/40fb753349c4f2be314c91dbb7e6f1a960097c19/.github/workflows/test.yml#L254-L288",sourceType:"a"},t[126].value),t[127].value),(0,e.tZ)("h3",{id:"function-testing"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#function-testing",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Function Testing"),(0,e.tZ)("p",null,t[128].value),(0,e.tZ)("p",null,t[129].value,(0,e.tZ)("code",null,t[130].value),t[131].value,(0,e.tZ)("code",null,t[132].value),t[133].value,(0,e.tZ)("code",null,t[134].value),t[135].value),(0,e.tZ)("p",null,t[136].value,(0,e.tZ)(n.Z,{href:"https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs",sourceType:"a"},t[137].value),t[138].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/40fb753349c4f2be314c91dbb7e6f1a960097c19/.github/workflows/test.yml#L141-L223",sourceType:"a"},t[139].value),t[140].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/40fb753349c4f2be314c91dbb7e6f1a960097c19/.github/workflows/test.yml#L294-L357",sourceType:"a"},t[141].value),t[142].value),(0,e.tZ)("h2",{id:"website-deploy"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#website-deploy",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Website Deploy"),(0,e.tZ)("p",null,t[143].value),(0,e.tZ)("h3",{id:"official-website-deploy"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#official-website-deploy",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Official Website Deploy"),(0,e.tZ)("p",null,t[144].value,(0,e.tZ)(n.Z,{href:"https://ant.design",sourceType:"a"},t[145].value),t[146].value,(0,e.tZ)(n.Z,{href:"https://pages.github.com/",sourceType:"a"},t[147].value),t[148].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/dedbdfddafc0134219e391473c109c14766f413d/.github/workflows/site-deploy.yml#L73-L78",sourceType:"a"},t[149].value),t[150].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/tree/gh-pages",sourceType:"a"},t[151].value),t[152].value),(0,e.tZ)("h3",{id:"standalone-versions"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#standalone-versions",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Standalone Versions"),(0,e.tZ)("p",null,t[153].value,(0,e.tZ)(n.Z,{href:"https://ant.design",sourceType:"a"},t[154].value),t[155].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/5aad29d937baeba43ca8acde7f86450e9aec99f1/.github/workflows/site-deploy.yml#L80-L90",sourceType:"a"},t[156].value),t[157].value,(0,e.tZ)("code",null,t[158].value),t[159].value),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/32004925/234485713-4e93154c-d5a4-4cad-87b0-e76667ff237f.png",alt:"versions-preview"})),(0,e.tZ)("h2",{id:"other"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#other",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Other"),(0,e.tZ)("p",null,t[160].value),(0,e.tZ)("h3",{id:"im-notification"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#im-notification",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"IM notification"),(0,e.tZ)("p",null,t[161].value),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,(0,e.tZ)("p",null,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/master/.github/workflows/issue-open-check.yml#L96-L105",sourceType:"a"},t[162].value),t[163].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/dedbdfddafc0134219e391473c109c14766f413d/.github/workflows/disscustion-open-check.yml#L16-L25",sourceType:"a"},t[164].value),t[165].value)),(0,e.tZ)("li",null,(0,e.tZ)("p",null,t[166].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/dedbdfddaf/.github/workflows/release-helper.yml",sourceType:"a"},t[167].value),t[168].value)),(0,e.tZ)("li",null,(0,e.tZ)("p",null,t[169].value))),(0,e.tZ)("h2",{id:"apply-to-your-own-projects"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#apply-to-your-own-projects",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Apply to your own projects"),(0,e.tZ)("p",null,t[170].value),(0,e.tZ)("h3",{id:"creating-a-project"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#creating-a-project",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Creating a Project"),(0,e.tZ)("p",null,t[171].value,(0,e.tZ)("code",null,t[172].value),t[173].value),(0,e.tZ)("h3",{id:"configuring-ci-workflow"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#configuring-ci-workflow",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Configuring CI Workflow"),(0,e.tZ)("p",null,t[174].value,(0,e.tZ)("code",null,t[175].value),t[176].value,(0,e.tZ)("code",null,t[177].value),t[178].value),(0,e.tZ)(u.Z,{lang:"yml"},t[179].value),(0,e.tZ)("p",null,t[180].value,(0,e.tZ)("code",null,t[181].value),t[182].value,(0,e.tZ)("code",null,t[183].value),t[184].value,(0,e.tZ)("code",null,t[185].value),t[186].value,(0,e.tZ)("code",null,t[187].value),t[188].value),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/32004925/234609284-ec7b40f5-a221-4c8b-9093-ce68a1a545bb.png",alt:"test-CI-preview"})),(0,e.tZ)("h3",{id:"adding-caching"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#adding-caching",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Adding Caching"),(0,e.tZ)("p",null,t[189].value),(0,e.tZ)(u.Z,{lang:"yml"},t[190].value),(0,e.tZ)("p",null,t[191].value,(0,e.tZ)("code",null,t[192].value),t[193].value),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/32004925/234617748-8bc4f0fd-b29a-4b01-b416-1c16eed03acb.png",alt:"pr-CI-preview"})),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/32004925/234621854-dbfc565c-26e0-4e48-862d-8dde8ab22627.png",alt:"restore-cache"})),(0,e.tZ)("p",null,t[194].value,(0,e.tZ)("code",null,t[195].value),t[196].value,(0,e.tZ)(n.Z,{href:"https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows",sourceType:"a"},t[197].value),t[198].value),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/32004925/234618808-46137b0d-27a0-4b01-b1a6-6e4931f6d388.png",alt:"cache-pnpm-store"})),(0,e.tZ)("h2",{id:"after-all"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#after-all",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"After all"),(0,e.tZ)("p",null,t[199].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/discussions",sourceType:"a"},t[200].value),t[201].value))))}l.default=o}}]);