{"id":220,"date":"2026-09-06T00:42:16","date_gmt":"2026-09-05T16:42:16","guid":{"rendered":"https:\/\/www.ziliaochi.cn\/index.php\/2026\/09\/06\/cicd-pipeline-cost\/"},"modified":"2026-09-06T00:42:16","modified_gmt":"2026-09-05T16:42:16","slug":"cicd-pipeline-cost","status":"publish","type":"post","link":"https:\/\/www.ziliaochi.cn\/index.php\/2026\/09\/06\/cicd-pipeline-cost\/","title":{"rendered":"CI\/CD \u6210\u672c\u4f18\u5316\uff1a\u628a\u8d26\u5355\u62c6\u5f00\uff0c\u627e\u5230\u6760\u6746\u6700\u5927\u7684\u56db\u4e2a\u52a8\u4f5c"},"content":{"rendered":"<div style=\"font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"PingFang SC\",\"Hiragino Sans GB\",\"Microsoft YaHei\",sans-serif;font-size:16.5px;line-height:1.9;color:#35435c;letter-spacing:.2px\">\n<div style=\"background:linear-gradient(135deg,#f5f9ff,#eef5ff);border:1px solid #dce8f8;border-left:4px solid #1d6bd6;border-radius:12px;padding:16px 20px;margin:0 0 24px;font-size:14.5px;color:#3d5570;line-height:2\"><span style=\"display:inline-block;background:#1d6bd6;color:#fff;font-size:12.5px;font-weight:700;padding:3px 10px;border-radius:6px;margin-right:12px;letter-spacing:1px;vertical-align:1px\">\u5173\u952e\u8bcd<\/span>CI\/CD \u6210\u672c\u3001Runner \u9009\u578b\u3001\u6784\u5efa\u7f13\u5b58\u3001Monorepo\u3001\u5de5\u7a0b\u6548\u80fd<\/div>\n<div style=\"background:#fafbfd;border:1px solid #e8edf5;border-radius:12px;padding:18px 22px;margin:0 0 30px\">\n<div style=\"font-size:13.5px;font-weight:700;color:#8a99ae;letter-spacing:2px;margin-bottom:12px\">\u76ee\u5f55<\/div>\n<ol style=\"margin:0;padding-left:20px\">\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-1\" style=\"color:#42546e;text-decoration:none;border:none\">\u4e00\u3001\u5148\u628a\u6210\u672c\u7ed3\u6784\u62c6\u5f00<\/a><\/li>\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-2\" style=\"color:#42546e;text-decoration:none;border:none\">\u4e8c\u3001\u6258\u7ba1 Runner \u8fd8\u662f\u81ea\u5efa\uff1f<\/a><\/li>\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-3\" style=\"color:#42546e;text-decoration:none;border:none\">\u4e09\u3001\u6760\u6746\u6700\u5927\u7684\u56db\u4e2a\u4f18\u5316\u52a8\u4f5c<\/a><\/li>\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-4\" style=\"color:#42546e;text-decoration:none;border:none\">\u56db\u3001\u5b89\u5168\uff1a\u4e09\u6761\u5fc5\u987b\u5b88\u4f4f\u7684\u7ebf<\/a><\/li>\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-5\" style=\"color:#42546e;text-decoration:none;border:none\">\u4e94\u3001\u53ef\u89c2\u6d4b\u6027\uff1a\u5148\u91cf\u518d\u4f18\u5316<\/a><\/li>\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-6\" style=\"color:#42546e;text-decoration:none;border:none\">\u516d\u3001\u5c0f\u7ed3<\/a><\/li>\n<\/ol>\n<\/div>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><span style=\"font-size:17px;color:#1e2f47\">CI\/CD \u7684\u95ee\u9898\u5f88\u5c11\u51fa\u5728&#8221;\u8dd1\u4e0d\u8d77\u6765&#8221;\uff0c\u800c\u662f\u51fa\u5728<strong style=\"color:#0f1c2e;font-weight:600\">\u8dd1\u5f97\u592a\u8d35\u3001\u592a\u6162\uff0c\u4e14\u6ca1\u4eba\u8bf4\u5f97\u6e05\u8d35\u5728\u54ea<\/strong>\u3002\u8d26\u5355\u9010\u6708\u4e0a\u6da8\uff0c\u6784\u5efa\u961f\u5217\u8d8a\u6392\u8d8a\u957f\uff0c\u4f46\u6bcf\u4e2a\u6539\u52a8\u770b\u8d77\u6765\u90fd\u5f88\u5408\u7406\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u672c\u6587\u4ece\u6210\u672c\u7ed3\u6784\u51fa\u53d1\uff0c\u8bb2\u6e05\u6258\u7ba1 Runner \u4e0e\u81ea\u5efa Runner \u7684\u771f\u5b9e\u8d26\u600e\u4e48\u7b97\uff0c\u4ee5\u53ca\u51e0\u4e2a\u6760\u6746\u6700\u5927\u7684\u4f18\u5316\u52a8\u4f5c\u3002<\/p>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #1d6bd6;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-1\">\u4e00\u3001\u5148\u628a\u6210\u672c\u7ed3\u6784\u62c6\u5f00<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u8ba8\u8bba&#8221;\u54ea\u5bb6\u4fbf\u5b9c&#8221;\u4e4b\u524d\uff0c\u5f97\u5148\u77e5\u9053\u94b1\u82b1\u5728\u54ea\u3002CI \u7684\u6210\u672c\u57fa\u672c\u7531\u4e09\u5757\u6784\u6210\uff1a<\/p>\n<figure style=\"margin:30px 0;text-align:center\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"900\" src=\"https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/cicd-pipeline-cost-fig.png\" alt=\"\u6760\u6746\u6700\u5927\u7684\u56db\u4e2a\u4f18\u5316\u52a8\u4f5c\" class=\"wp-image-219\" style=\"max-width:100%;height:auto;border-radius:12px;border:1px solid #e6ecf4;box-shadow:0 8px 24px rgba(15,30,60,.07)\" srcset=\"https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/cicd-pipeline-cost-fig.png 1200w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/cicd-pipeline-cost-fig-300x225.png 300w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/cicd-pipeline-cost-fig-1024x768.png 1024w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/cicd-pipeline-cost-fig-768x576.png 768w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/cicd-pipeline-cost-fig-800x600.png 800w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><figcaption style=\"margin-top:12px;font-size:13.5px;color:#7b8aa0;text-align:center;line-height:1.75\">CI\/CD \u4f18\u5316\u52a8\u4f5c\uff1a\u7f13\u5b58 \u2192 \u8def\u5f84\u8fc7\u6ee4 \u2192 \u5931\u8d25\u4f18\u5148 \u2192 \u77e9\u9635\u7ef4\u5ea6\u63a7\u5236<\/figcaption><\/figure>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #1d6bd640\">1. \u8ba1\u7b97\u65f6\u95f4\uff1a\u6700\u76f4\u89c2\u7684\u4e00\u5757<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u6258\u7ba1 Runner \u6309<strong style=\"color:#0f1c2e;font-weight:600\">\u6784\u5efa\u5206\u949f\u6570<\/strong>\u8ba1\u8d39\uff0c\u4e14\u4e0d\u540c\u89c4\u683c\u7684\u673a\u5668\u7cfb\u6570\u4e0d\u540c\uff08\u9ad8\u6838\u5927\u5185\u5b58\u673a\u5668\u901a\u5e38\u662f\u6807\u51c6\u673a\u7684\u6570\u500d\u7cfb\u6570\uff09\u3002\u8fd9\u610f\u5473\u7740<strong style=\"color:#0f1c2e;font-weight:600\">\u628a\u4e00\u4e2a\u4efb\u52a1\u4ece 4 \u6838\u632a\u5230 16 \u6838\uff0c\u4ef7\u683c\u4e0d\u662f\u7ebf\u6027\u589e\u957f<\/strong>\uff0c\u5f88\u5bb9\u6613\u5728\u65e0\u610f\u4e2d\u628a\u8d26\u5355\u63a8\u9ad8\u3002<\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #1d6bd640\">2. \u5e76\u53d1\u6570\uff1a\u6700\u5bb9\u6613\u88ab\u5ffd\u7565\u7684\u9690\u6027\u6210\u672c<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u5f88\u591a\u4eba\u53ea\u76ef\u7740\u5355\u4ef7\uff0c\u5ffd\u7565\u4e86<strong style=\"color:#0f1c2e;font-weight:600\">\u5e76\u53d1\u989d\u5ea6<\/strong>\u3002\u56e2\u961f\u89c4\u6a21\u4e0a\u6765\u4e4b\u540e\uff0c\u771f\u6b63\u5361\u4f4f\u4ea4\u4ed8\u7684\u4e0d\u662f\u5355\u4efb\u52a1\u4ef7\u683c\uff0c\u800c\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u961f\u5217\u7b49\u5f85<\/strong>\u2014\u2014\u5f00\u53d1\u8005\u63d0\u4ea4\u540e\u7b49 20 \u5206\u949f\u624d\u5f00\u59cb\u8dd1\uff0c\u8fd9\u4e2a\u6210\u672c\u8fdc\u9ad8\u4e8e\u8d26\u5355\u4e0a\u591a\u51fa\u7684\u90a3\u70b9\u94b1\u3002<\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #1d6bd640\">3. \u5b58\u50a8\u4e0e\u6d41\u91cf\uff1a\u7f13\u5b58\u3001\u5236\u54c1\u3001\u955c\u50cf<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u7f13\u5b58\u3001\u6784\u5efa\u4ea7\u7269\u3001\u5bb9\u5668\u955c\u50cf\u7684\u5b58\u50a8\u4e0e\u8de8\u533a\u6d41\u91cf\uff0c\u5728\u89c4\u6a21\u4e0a\u6765\u4e4b\u540e\u4f1a\u53d8\u6210\u4e00\u7b14\u53ef\u89c2\u7684\u56fa\u5b9a\u652f\u51fa\u3002<strong style=\"color:#0f1c2e;font-weight:600\">\u5c24\u5176\u5bb9\u5668\u955c\u50cf\u4ed3\u5e93\uff0c\u5982\u679c\u6ca1\u6709\u6e05\u7406\u7b56\u7565\uff0c\u51e0\u4e2a\u6708\u5c31\u80fd\u5806\u5230\u9700\u8981\u4e13\u95e8\u6cbb\u7406\u3002<\/strong><\/p>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #1d6bd6;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-2\">\u4e8c\u3001\u6258\u7ba1 Runner \u8fd8\u662f\u81ea\u5efa\uff1f<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u8fd9\u4e2a\u95ee\u9898\u6ca1\u6709\u666e\u9002\u7b54\u6848\uff0c\u4f46\u6709\u6e05\u6670\u7684\u5224\u65ad\u6846\u67b6\u3002<\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #1d6bd640\">\u6258\u7ba1 Runner \u5212\u7b97\u7684\u573a\u666f<\/h3>\n<ul style=\"padding-left:26px;margin:16px 0\">\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u56e2\u961f\u89c4\u6a21\u5c0f\u3001\u6784\u5efa\u91cf\u6ce2\u52a8\u5927<\/strong>\uff1a\u6309\u9700\u4ed8\u8d39\u5929\u7136\u9002\u914d\u6ce2\u5cf0\u6ce2\u8c37\uff0c\u4e0d\u7528\u4e3a\u95f2\u7f6e\u4ed8\u8d39\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u6ca1\u6709\u4e13\u804c\u8fd0\u7ef4<\/strong>\uff1a\u673a\u5668\u7ef4\u62a4\u3001\u955c\u50cf\u66f4\u65b0\u3001\u5b89\u5168\u8865\u4e01\u90fd\u4e0d\u7528\u7ba1\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u6784\u5efa\u73af\u5883\u6807\u51c6\u5316<\/strong>\uff1a\u4f9d\u8d56\u5b98\u65b9\u63d0\u4f9b\u7684\u8fd0\u884c\u73af\u5883\uff0c\u4e0d\u9700\u8981\u7279\u6b8a\u7684\u7cfb\u7edf\u7ea7\u4f9d\u8d56\u3002<\/li>\n<\/ul>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #1d6bd640\">\u81ea\u5efa Runner \u5212\u7b97\u7684\u573a\u666f<\/h3>\n<ul style=\"padding-left:26px;margin:16px 0\">\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u6784\u5efa\u91cf\u5927\u4e14\u7a33\u5b9a<\/strong>\uff1a\u5f53\u6708\u5ea6\u5206\u949f\u6570\u8d85\u8fc7\u67d0\u4e2a\u9608\u503c\u540e\uff0c\u81ea\u5efa\u7684\u8fb9\u9645\u6210\u672c\u4f18\u52bf\u4f1a\u8fc5\u901f\u663e\u73b0\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u9700\u8981\u7279\u6b8a\u786c\u4ef6\u6216\u5185\u7f51\u8d44\u6e90<\/strong>\uff1a\u8981\u8fde\u5185\u7f51\u6570\u636e\u5e93\u505a\u96c6\u6210\u6d4b\u8bd5\u3001\u9700\u8981 GPU\u3001\u9700\u8981\u7279\u5b9a\u7684\u64cd\u4f5c\u7cfb\u7edf\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u6784\u5efa\u6781\u91cd<\/strong>\uff1a\u5927\u578b C++ \/ \u79fb\u52a8\u7aef\u9879\u76ee\u5355\u6b21\u6784\u5efa\u51e0\u5341\u5206\u949f\uff0c\u6258\u7ba1\u65b9\u6848\u7684\u6027\u4ef7\u6bd4\u4f1a\u660e\u663e\u4e0b\u964d\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u5408\u89c4\u8981\u6c42<\/strong>\uff1a\u4ee3\u7801\u4e0e\u5236\u54c1\u4e0d\u80fd\u79bb\u5f00\u81ea\u6709\u57fa\u7840\u8bbe\u65bd\u3002<\/li>\n<\/ul>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #1d6bd640\">\u4e00\u4e2a\u52a1\u5b9e\u7684\u5224\u65ad\u65b9\u6cd5<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u4e0d\u8981\u51ed\u611f\u89c9\u51b3\u7b56\u3002<strong style=\"color:#0f1c2e;font-weight:600\">\u5148\u5bfc\u51fa\u8fc7\u53bb\u4e09\u4e2a\u6708\u7684\u6784\u5efa\u5206\u949f\u6570\u3001\u5e76\u53d1\u5cf0\u503c\u3001\u5b58\u50a8\u7528\u91cf<\/strong>\uff0c\u6309\u81ea\u5efa\u65b9\u6848\u7684\u673a\u5668\u6210\u672c + \u8fd0\u7ef4\u4eba\u529b\u6298\u7b97\u6210\u6708\u5ea6\u603b\u6210\u672c\uff0c\u518d\u548c\u6258\u7ba1\u8d26\u5355\u5bf9\u6bd4\u3002\u591a\u6570\u56e2\u961f\u7b97\u5b8c\u4f1a\u53d1\u73b0\uff1a<strong style=\"color:#0f1c2e;font-weight:600\">\u4e34\u754c\u70b9\u5728&#8221;\u6bcf\u6708\u51e0\u5343\u5230\u4e0a\u4e07\u6784\u5efa\u5206\u949f&#8221;\u8fd9\u4e2a\u91cf\u7ea7<\/strong>\uff0c\u4f4e\u4e8e\u5b83\u6258\u7ba1\u66f4\u7701\u5fc3\uff0c\u9ad8\u4e8e\u5b83\u81ea\u5efa\u66f4\u5212\u7b97\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u8fd8\u6709\u4e00\u6761\u5e38\u89c1\u7684\u6700\u4f18\u8def\u5f84\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u6df7\u5408\u6a21\u5f0f<\/strong>\uff1a\u5e38\u89c4\u4efb\u52a1\u8dd1\u6258\u7ba1\uff0c\u91cd\u4efb\u52a1\uff08\u79fb\u52a8\u7aef\u6253\u5305\u3001\u5168\u91cf\u7f16\u8bd1\uff09\u8dd1\u81ea\u5efa\u3002\u65e2\u63a7\u5236\u8fd0\u7ef4\u9762\uff0c\u53c8\u6390\u6389\u8d26\u5355\u4e0a\u6700\u8d35\u7684\u90a3\u90e8\u5206\u3002<\/p>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #1d6bd6;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-3\">\u4e09\u3001\u6760\u6746\u6700\u5927\u7684\u56db\u4e2a\u4f18\u5316\u52a8\u4f5c<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u6309\u6295\u5165\u4ea7\u51fa\u6bd4\u6392\u5e8f\uff0c\u524d\u4e24\u9879\u51e0\u4e4e\u603b\u662f\u503c\u5f97\u505a\u3002<\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #1d6bd640\">1. \u7f13\u5b58\uff1a\u6536\u76ca\u6700\u5927\uff0c\u4e14\u6539\u52a8\u5c0f<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">CI \u91cc\u6700\u5178\u578b\u7684\u6d6a\u8d39\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u6bcf\u6b21\u90fd\u91cd\u65b0\u4e0b\u8f7d\u5168\u90e8\u4f9d\u8d56<\/strong>\u3002\u6b63\u786e\u914d\u7f6e\u7f13\u5b58\u540e\uff0c\u5f88\u591a\u9879\u76ee\u7684\u6784\u5efa\u65f6\u95f4\u80fd\u780d\u6389\u4e00\u5927\u534a\u3002<\/p>\n<pre style=\"background:#0f1a2b;color:#dbe6f5;border-radius:12px;padding:18px 20px;overflow-x:auto;font-size:13.6px;line-height:1.78;margin:22px 0;border:1px solid #1e2c42;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace\"><code style=\"background:none;border:none;color:inherit;padding:0;font-size:inherit;font-family:inherit\"># \u601d\u8def\u793a\u4f8b\uff1a\u4ee5\u4f9d\u8d56\u6e05\u5355\u7684\u54c8\u5e0c\u4f5c\u4e3a\u7f13\u5b58\u952e\n- uses: actions\/cache@v4\n  with:\n    path: |\n      ~\/.npm\n      node_modules\n    key: deps-${{ runner.os }}-${{ hashFiles('**\/package-lock.json') }}\n    restore-keys: |\n      deps-${{ runner.os }}-\n<\/code><\/pre>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u5173\u952e\u70b9\u6709\u4e24\u4e2a\uff1a<strong style=\"color:#0f1c2e;font-weight:600\">\u7f13\u5b58\u952e\u8981\u7ed1\u5b9a\u4f9d\u8d56\u6e05\u5355\u7684\u54c8\u5e0c<\/strong>\uff08\u4f9d\u8d56\u53d8\u4e86\u7f13\u5b58\u81ea\u52a8\u5931\u6548\uff09\uff0c\u4ee5\u53ca<strong style=\"color:#0f1c2e;font-weight:600\">\u914d\u7f6e restore-keys \u505a\u524d\u7f00\u56de\u9000<\/strong>\uff08\u4f9d\u8d56\u5c0f\u6539\u65f6\u4ecd\u80fd\u547d\u4e2d\u5927\u90e8\u5206\u7f13\u5b58\uff09\u3002<\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #1d6bd640\">2. \u8def\u5f84\u8fc7\u6ee4\uff1aMonorepo \u7684\u6551\u547d\u7a3b\u8349<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">Monorepo \u91cc&#8221;\u6539\u4e86\u524d\u7aef\u5374\u89e6\u53d1\u540e\u7aef\u5168\u91cf\u6d4b\u8bd5&#8221;\u662f\u5de8\u5927\u7684\u6d6a\u8d39\u3002\u7528\u8def\u5f84\u8fc7\u6ee4\u628a<strong style=\"color:#0f1c2e;font-weight:600\">\u53d8\u66f4\u8303\u56f4\u548c\u4efb\u52a1\u96c6\u5173\u8054\u8d77\u6765<\/strong>\uff1a<\/p>\n<pre style=\"background:#0f1a2b;color:#dbe6f5;border-radius:12px;padding:18px 20px;overflow-x:auto;font-size:13.6px;line-height:1.78;margin:22px 0;border:1px solid #1e2c42;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace\"><code style=\"background:none;border:none;color:inherit;padding:0;font-size:inherit;font-family:inherit\"># \u53ea\u6709 packages\/web \u4e0b\u6709\u53d8\u66f4\u65f6\u624d\u8dd1\u524d\u7aef\u4efb\u52a1\n- uses: dorny\/paths-filter@v3\n  id: changes\n  with:\n    filters: |\n      web:\n        - 'packages\/web\/**'\n- if: steps.changes.outputs.web == 'true'\n  run: npm run test:web\n<\/code><\/pre>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u5728\u5927\u4ed3\u5e93\u4e0a\uff0c\u8fd9\u4e00\u9879\u7684\u6536\u76ca\u7ecf\u5e38\u8d85\u8fc7\u6240\u6709\u5176\u4ed6\u4f18\u5316\u7684\u603b\u548c\u3002<\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #1d6bd640\">3. \u5931\u8d25\u4f18\u5148\u4e0e\u5feb\u901f\u53cd\u9988<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u628a<strong style=\"color:#0f1c2e;font-weight:600\">\u5feb\u4e14\u9ad8\u5931\u8d25\u7387\u7684\u4efb\u52a1\u653e\u5728\u6700\u524d\u9762<\/strong>\uff08lint\u3001\u7c7b\u578b\u68c0\u67e5\u3001\u5355\u5143\u6d4b\u8bd5\uff09\uff0c\u6162\u4efb\u52a1\uff08\u7aef\u5230\u7aef\u6d4b\u8bd5\u3001\u6253\u5305\uff09\u653e\u540e\u9762\u3002\u8fd9\u6837\u5927\u90e8\u5206\u9519\u8bef\u80fd\u5728\u51e0\u5206\u949f\u5185\u53cd\u9988\uff0c\u800c\u4e0d\u662f\u8ba9\u4eba\u7b49\u534a\u5c0f\u65f6\u624d\u53d1\u73b0\u5c11\u4e86\u4e2a\u5206\u53f7\u3002<\/p>\n<pre style=\"background:#0f1a2b;color:#dbe6f5;border-radius:12px;padding:18px 20px;overflow-x:auto;font-size:13.6px;line-height:1.78;margin:22px 0;border:1px solid #1e2c42;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace\"><code style=\"background:none;border:none;color:inherit;padding:0;font-size:inherit;font-family:inherit\"># \u53d6\u6d88\u540c\u4e00\u5206\u652f\u4e0a\u5df2\u88ab\u65b0\u63d0\u4ea4\u53d6\u4ee3\u7684\u65e7\u6784\u5efa\nconcurrency:\n  group: ci-${{ github.ref }}\n  cancel-in-progress: true\n<\/code><\/pre>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #1d6bd640\">4. \u77e9\u9635\u6784\u5efa\u7684\u7ef4\u5ea6\u63a7\u5236<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u591a\u7248\u672c \u00d7 \u591a\u5e73\u53f0\u7684\u77e9\u9635\u5f88\u5bb9\u6613\u81a8\u80c0\u3002\u5b9e\u7528\u7684\u505a\u6cd5\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u4e3b\u6d41\u7a0b\u53ea\u8dd1\u4ee3\u8868\u6027\u7ec4\u5408<\/strong>\uff08\u6bd4\u5982\u6700\u65b0\u7a33\u5b9a\u7248 + \u6700\u4f4e\u652f\u6301\u7248\uff09\uff0c\u5b8c\u6574\u77e9\u9635\u653e\u5230<strong style=\"color:#0f1c2e;font-weight:600\">\u5b9a\u65f6\u6784\u5efa<\/strong>\u91cc\u8dd1\uff0c\u800c\u4e0d\u662f\u6bcf\u6b21\u63d0\u4ea4\u90fd\u8dd1\u5168\u3002<\/p>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #1d6bd6;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-4\">\u56db\u3001\u5b89\u5168\uff1a\u4e09\u6761\u5fc5\u987b\u5b88\u4f4f\u7684\u7ebf<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">CI \u662f\u4f9b\u5e94\u94fe\u653b\u51fb\u7684\u9ad8\u4ef7\u503c\u76ee\u6807\uff0c\u8fd9\u4e09\u6761\u4e0d\u80fd\u7701\uff1a<\/p>\n<ul style=\"padding-left:26px;margin:16px 0\">\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u7b2c\u4e09\u65b9 Action \u56fa\u5b9a\u5230\u5177\u4f53 commit SHA<\/strong>\uff0c\u800c\u4e0d\u662f tag\u3002tag \u53ef\u4ee5\u88ab\u79fb\u52a8\uff0cSHA \u4e0d\u80fd\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u5bc6\u94a5\u901a\u8fc7\u5e73\u53f0\u7684\u52a0\u5bc6\u673a\u5236\u6ce8\u5165<\/strong>\uff0c\u7edd\u4e0d\u5199\u8fdb\u914d\u7f6e\u6587\u4ef6\u6216\u4ee3\u7801\u3002\u540c\u65f6\u6309\u73af\u5883\u62c6\u5206\u6743\u9650\uff0c\u751f\u4ea7\u73af\u5883\u7684\u51ed\u8bc1\u4e0d\u8981\u5bf9\u6240\u6709\u5206\u652f\u53ef\u89c1\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u9650\u5236 fork PR \u7684Runner\u6743\u9650<\/strong>\uff0c\u907f\u514d\u5916\u90e8\u63d0\u4ea4\u89e6\u53d1\u7684\u6784\u5efa\u62ff\u5230\u5199\u6743\u9650\u6216\u751f\u4ea7\u5bc6\u94a5\u3002<\/li>\n<\/ul>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #1d6bd6;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-5\">\u4e94\u3001\u53ef\u89c2\u6d4b\u6027\uff1a\u5148\u91cf\u518d\u4f18\u5316<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u4f18\u5316\u7684\u524d\u63d0\u662f\u77e5\u9053\u65f6\u95f4\u82b1\u5728\u54ea\u3002\u6700\u4f4e\u8981\u6c42\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u8ba9\u6d41\u6c34\u7ebf\u81ea\u5df1\u4ea7\u51fa\u6bcf\u4e2a\u6b65\u9aa4\u7684\u8017\u65f6\u7edf\u8ba1<\/strong>\uff0c\u5e76\u8ddf\u8e2a\u51e0\u4e2a\u8d8b\u52bf\u6307\u6807\uff1aP50\/P95 \u6784\u5efa\u65f6\u957f\u3001\u6708\u5ea6\u6784\u5efa\u5206\u949f\u6570\u3001\u7f13\u5b58\u547d\u4e2d\u7387\u3001\u961f\u5217\u7b49\u5f85\u65f6\u957f\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u5176\u4e2d<strong style=\"color:#0f1c2e;font-weight:600\">\u7f13\u5b58\u547d\u4e2d\u7387<\/strong>\u6700\u503c\u5f97\u76ef\u2014\u2014\u5b83\u4e00\u65e6\u4e0b\u6ed1\uff0c\u901a\u5e38\u610f\u5473\u7740\u4f9d\u8d56\u6e05\u5355\u5728\u65e0\u610f\u8bc6\u5730\u9891\u7e41\u53d8\u52a8\uff0c\u6216\u8005\u6709\u4efb\u52a1\u7684\u7f13\u5b58\u952e\u5199\u9519\u4e86\u3002<\/p>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #1d6bd6;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-6\">\u516d\u3001\u5c0f\u7ed3<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">CI\/CD \u7684\u6210\u672c\u95ee\u9898\uff0c\u672c\u8d28\u4e0a\u5f88\u5c11\u662f&#8221;\u9009\u9519\u4e86\u5e73\u53f0&#8221;\uff0c\u800c\u591a\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u6ca1\u6709\u7f13\u5b58\u3001\u6ca1\u6709\u8def\u5f84\u8fc7\u6ee4\u3001\u6ca1\u6709\u5e76\u53d1\u63a7\u5236<\/strong>\u8fd9\u4e09\u4ef6\u4e8b\u6ca1\u505a\u3002\u628a\u8fd9\u4e09\u4ef6\u505a\u5bf9\uff0c\u8d26\u5355\u548c\u6784\u5efa\u65f6\u957f\u901a\u5e38\u90fd\u80fd\u6709\u6570\u91cf\u7ea7\u7684\u6539\u5584\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u81f3\u4e8e\u6258\u7ba1\u8fd8\u662f\u81ea\u5efa\uff0c<strong style=\"color:#0f1c2e;font-weight:600\">\u62ff\u4e09\u4e2a\u6708\u7684\u5386\u53f2\u6570\u636e\u7b97\u4e00\u904d\u518d\u51b3\u5b9a<\/strong>\u2014\u2014\u8fd9\u4e2a\u8ba1\u7b97\u672c\u8eab\u82b1\u4e0d\u4e86\u534a\u5c0f\u65f6\uff0c\u4f46\u80fd\u907f\u514d\u957f\u671f\u5728\u9519\u8bef\u7684\u65b9\u5411\u4e0a\u7701\u94b1\u3002<\/p>\n<div style=\"margin:42px 0 0;padding:22px 0 0;border-top:1px solid #eaeef4\">\n<div style=\"font-size:13px;color:#93a1b5;letter-spacing:1px;margin-bottom:12px\">\u6807\u7b7e<\/div>\n<p><span style=\"display:inline-block;background:#f3f6fa;border:1px solid #e4eaf2;color:#5b6c85;font-size:13px;padding:5px 12px;border-radius:999px;margin:0 8px 8px 0\">#CI\/CD<\/span><span style=\"display:inline-block;background:#f3f6fa;border:1px solid #e4eaf2;color:#5b6c85;font-size:13px;padding:5px 12px;border-radius:999px;margin:0 8px 8px 0\">#\u5de5\u7a0b\u6548\u80fd<\/span><span style=\"display:inline-block;background:#f3f6fa;border:1px solid #e4eaf2;color:#5b6c85;font-size:13px;padding:5px 12px;border-radius:999px;margin:0 8px 8px 0\">#\u6210\u672c\u4f18\u5316<\/span><span style=\"display:inline-block;background:#f3f6fa;border:1px solid #e4eaf2;color:#5b6c85;font-size:13px;padding:5px 12px;border-radius:999px;margin:0 8px 8px 0\">#DevOps<\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u8d26\u5355\u9010\u6708\u4e0a\u6da8\uff0c\u6784\u5efa\u961f\u5217\u8d8a\u6392\u8d8a\u957f\uff0c\u4f46\u6bcf\u4e2a\u6539\u52a8\u770b\u8d77\u6765\u90fd\u5f88\u5408\u7406\u3002\u672c\u6587\u4ece\u6210\u672c\u7ed3\u6784\u51fa\u53d1\uff0c\u8bb2\u6e05\u6258\u7ba1 Runner \u4e0e\u81ea\u5efa Runner \u7684\u771f\u5b9e\u8d26\u600e\u4e48\u7b97\uff0c\u7ed9\u51fa\u6760\u6746\u6700\u5927\u7684\u56db\u4e2a\u4f18\u5316\u52a8\u4f5c\uff0c\u4ee5\u53ca\u5b89\u5168\u4e0e\u53ef\u89c2\u6d4b\u6027\u7684\u4e09\u6761\u5e95\u7ebf\u3002<\/p>\n","protected":false},"author":1,"featured_media":218,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,1],"tags":[58,55,101,102],"class_list":["post-220","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-engineering-practice","category-technical","tag-ci-cd","tag-devops","tag-101","tag-102"],"_links":{"self":[{"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/posts\/220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":0,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/media\/218"}],"wp:attachment":[{"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}