Skip to content

ci(workflows): rename, optimize and unify CI with enhanced PR preview#1681

Merged
RSS1102 merged 20 commits intodevfrom
rss1102/chore/ci-workflows
Apr 14, 2026
Merged

ci(workflows): rename, optimize and unify CI with enhanced PR preview#1681
RSS1102 merged 20 commits intodevfrom
rss1102/chore/ci-workflows

Conversation

@RSS1102
Copy link
Copy Markdown
Collaborator

@RSS1102 RSS1102 commented Apr 8, 2026

The user wants me to annotate the call relationship diagram with functionality descriptions for each workflow.

PR opened/sync/reopened
│
├── pr-ci.yml                    🔍 ESLint + Node 20/22 多版本构建验证
├── pr-test.yml                  🧪 单元测试 (yarn test)
├── pr-spell-check.yml           📝 拼写检查 (TDesign 共享 workflow)
├── pr-changeset-check.yml       📋 检查 PR 是否附带 changeset
├── pr-compressed-size.yml       📦 构建产物体积变化 diff
│
├── pr-preview-build.yml         🏗️ 编排构建所有预览产物
│   ├── reusable-playground-build.yml    🎮 构建 Playground (dist + examples → artifact)
│   ├── reusable-client-build.yml        💻 Client 多平台构建 (macOS/Win/Linux → artifact)
│   │                                       mode=preview: 上传 artifact
│   └── reusable-vscode-plugin.yml       🔌 VSCode 插件打包
│                                           mode=package: 打包 .vsix → artifact
│
├── pr-preview-deploy.yml        🚀 部署预览 + PR 评论
│   ├── Playground → surge.sh 在线预览    🌐 20个 HTML 示例页可访问
│   ├── Client artifacts 评论              💻 下载链接表格 (平台/架构/类型)
│   └── VSCode .vsix 评论                  🔌 下载链接
│
└── pr-preview-pkg.yml           📦 pkg-pr-new 发布 npm 预览包 (pnpm/npm/yarn 可引用)


PR closed + merged → dev
│
└── merge-dev-preview.yml        🔀 合并到 dev 后自动发布开发预览版
    ├── reusable-npm-dev-preview.yml    📦 发布 @cherry-markdown/cherry-markdown-dev 到 npm
    │                                      (带时间戳版本号 + PR 评论安装指引)
    └── reusable-vscode-plugin.yml      🔌 VSCode 插件预发布到 Marketplace
                                           mode=pre-release: --pre-release 发布


Push → main
│
├── release.yml                  🏷️ Changesets 正式发布编排器
│   ├── 版本管理 + tag 推送               📋 yarn changeset version & tag
│   ├── reusable-npm-release.yml        📦 cherry-markdown npm 正式发布 (OIDC 认证)
│   │                                       构建和发布均使用 .node-version(20)
│   ├── reusable-client-build.yml       💻 Client 多平台构建 + GitHub Release 上传
│   │                                      mode=release: DMG/App/MSI/EXE/AppImage/Deb
│   ├── reusable-vscode-plugin.yml      🔌 VSCode 插件正式发布到 Marketplace
│   │                                      mode=release: vsce publish
│   └── sync-main-to-dev                🔁 强制同步 main → dev (仅在有包发布时)
│
└── deploy-pages.yml             🌐 构建文档站 → 部署到 gh-pages
                                   dist + examples → https://tencent.github.io/cherry-markdown/


Any push / delete branch
│
└── sync-cnb.yml                 🔁 同步代码到腾讯 CNB 仓库
                                   push: 双向同步 | delete: 删除 CNB 对应分支

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 8, 2026

⚠️ No Changeset found

Latest commit: 81225df

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 8, 2026

Open in StackBlitz

pnpm add https://pkg.pr.new/cherry-markdown@1681
npm i https://pkg.pr.new/cherry-markdown@1681
yarn add https://pkg.pr.new/cherry-markdown@1681.tgz

commit: 81225df

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Size Change: 0 B

Total Size: 7.84 MB

ℹ️ View Unchanged
Filename Size
packages/cherry-markdown/dist/addons/advance/cherry-codeblock-echarts-plugin.esm.js 29.7 kB
packages/cherry-markdown/dist/addons/advance/cherry-codeblock-echarts-plugin.js 29.8 kB
packages/cherry-markdown/dist/addons/advance/cherry-table-echarts-plugin.esm.js 49.4 kB
packages/cherry-markdown/dist/addons/advance/cherry-table-echarts-plugin.js 49.5 kB
packages/cherry-markdown/dist/addons/advance/cherry-tapd-checklist-plugin.esm.js 22.4 kB
packages/cherry-markdown/dist/addons/advance/cherry-tapd-checklist-plugin.js 22.5 kB
packages/cherry-markdown/dist/addons/advance/cherry-tapd-html-tag-plugin.esm.js 22.4 kB
packages/cherry-markdown/dist/addons/advance/cherry-tapd-html-tag-plugin.js 22.4 kB
packages/cherry-markdown/dist/addons/advance/cherry-tapd-table-plugin.esm.js 25.4 kB
packages/cherry-markdown/dist/addons/advance/cherry-tapd-table-plugin.js 25.5 kB
packages/cherry-markdown/dist/addons/cherry-code-block-mermaid-plugin.esm.js 23.3 kB
packages/cherry-markdown/dist/addons/cherry-code-block-mermaid-plugin.js 23.3 kB
packages/cherry-markdown/dist/addons/cherry-code-block-plantuml-plugin.esm.js 24.7 kB
packages/cherry-markdown/dist/addons/cherry-code-block-plantuml-plugin.js 24.8 kB
packages/cherry-markdown/dist/cherry-markdown.core.d.ts 106 B
packages/cherry-markdown/dist/cherry-markdown.core.js 674 kB
packages/cherry-markdown/dist/cherry-markdown.css 35.3 kB
packages/cherry-markdown/dist/cherry-markdown.d.ts 101 B
packages/cherry-markdown/dist/cherry-markdown.engine.core.d.ts 116 B
packages/cherry-markdown/dist/cherry-markdown.engine.core.esm.d.ts 116 B
packages/cherry-markdown/dist/cherry-markdown.engine.core.esm.js 301 kB
packages/cherry-markdown/dist/cherry-markdown.engine.core.js 301 kB
packages/cherry-markdown/dist/cherry-markdown.esm.d.ts 101 B
packages/cherry-markdown/dist/cherry-markdown.esm.js 1.65 MB
packages/cherry-markdown/dist/cherry-markdown.js 3.32 MB
packages/cherry-markdown/dist/cherry-markdown.markdown.css 20.7 kB
packages/cherry-markdown/dist/cherry-markdown.markdown.min.css 14.4 kB
packages/cherry-markdown/dist/cherry-markdown.min.css 27.8 kB
packages/cherry-markdown/dist/cherry-markdown.stream.d.ts 100 B
packages/cherry-markdown/dist/cherry-markdown.stream.esm.d.ts 100 B
packages/cherry-markdown/dist/cherry-markdown.stream.esm.js 484 kB
packages/cherry-markdown/dist/cherry-markdown.stream.js 484 kB
packages/cherry-markdown/dist/types/addons/advance/cherry-codeblock-echarts-plugin.d.ts 461 B
packages/cherry-markdown/dist/types/addons/advance/cherry-table-echarts-plugin.d.ts 1.73 kB
packages/cherry-markdown/dist/types/addons/advance/cherry-tapd-checklist-plugin.d.ts 323 B
packages/cherry-markdown/dist/types/addons/advance/cherry-tapd-html-tag-plugin.d.ts 494 B
packages/cherry-markdown/dist/types/addons/advance/cherry-tapd-table-plugin.d.ts 1.15 kB
packages/cherry-markdown/dist/types/addons/cherry-code-block-mermaid-plugin.d.ts 1.45 kB
packages/cherry-markdown/dist/types/addons/cherry-code-block-plantuml-plugin.d.ts 160 B
packages/cherry-markdown/dist/types/Cherry.config.d.ts 122 B
packages/cherry-markdown/dist/types/Cherry.d.ts 4.62 kB
packages/cherry-markdown/dist/types/CherryStatic.d.ts 547 B
packages/cherry-markdown/dist/types/CherryStream.d.ts 1.59 kB
packages/cherry-markdown/dist/types/core/HookCenter.d.ts 789 B
packages/cherry-markdown/dist/types/core/hooks/AiFlowAutoClose.d.ts 370 B
packages/cherry-markdown/dist/types/core/hooks/AutoLink.d.ts 948 B
packages/cherry-markdown/dist/types/core/hooks/BackgroundColor.d.ts 189 B
packages/cherry-markdown/dist/types/core/hooks/Blockquote.d.ts 195 B
packages/cherry-markdown/dist/types/core/hooks/Br.d.ts 193 B
packages/cherry-markdown/dist/types/core/hooks/CodeBlock.d.ts 1.61 kB
packages/cherry-markdown/dist/types/core/hooks/Color.d.ts 183 B
packages/cherry-markdown/dist/types/core/hooks/CommentReference.d.ts 665 B
packages/cherry-markdown/dist/types/core/hooks/Detail.d.ts 328 B
packages/cherry-markdown/dist/types/core/hooks/Emoji.config.d.ts 9.31 kB
packages/cherry-markdown/dist/types/core/hooks/Emoji.d.ts 9.36 kB
packages/cherry-markdown/dist/types/core/hooks/Emphasis.d.ts 263 B
packages/cherry-markdown/dist/types/core/hooks/Footnote.d.ts 307 B
packages/cherry-markdown/dist/types/core/hooks/FrontMatter.d.ts 192 B
packages/cherry-markdown/dist/types/core/hooks/Header.d.ts 605 B
packages/cherry-markdown/dist/types/core/hooks/HighLight.d.ts 157 B
packages/cherry-markdown/dist/types/core/hooks/Hr.d.ts 223 B
packages/cherry-markdown/dist/types/core/hooks/HtmlBlock.d.ts 313 B
packages/cherry-markdown/dist/types/core/hooks/Image.d.ts 325 B
packages/cherry-markdown/dist/types/core/hooks/InlineCode.d.ts 181 B
packages/cherry-markdown/dist/types/core/hooks/InlineMath.d.ts 707 B
packages/cherry-markdown/dist/types/core/hooks/Link.d.ts 582 B
packages/cherry-markdown/dist/types/core/hooks/List.d.ts 347 B
packages/cherry-markdown/dist/types/core/hooks/MathBlock.d.ts 461 B
packages/cherry-markdown/dist/types/core/hooks/Panel.d.ts 436 B
packages/cherry-markdown/dist/types/core/hooks/Paragraph.d.ts 664 B
packages/cherry-markdown/dist/types/core/hooks/Ruby.d.ts 154 B
packages/cherry-markdown/dist/types/core/hooks/Size.d.ts 176 B
packages/cherry-markdown/dist/types/core/hooks/Space.d.ts 199 B
packages/cherry-markdown/dist/types/core/hooks/Strikethrough.d.ts 241 B
packages/cherry-markdown/dist/types/core/hooks/Sub.d.ts 179 B
packages/cherry-markdown/dist/types/core/hooks/Suggester.d.ts 2.23 kB
packages/cherry-markdown/dist/types/core/hooks/SuggestList.d.ts 158 B
packages/cherry-markdown/dist/types/core/hooks/Sup.d.ts 179 B
packages/cherry-markdown/dist/types/core/hooks/Table.d.ts 554 B
packages/cherry-markdown/dist/types/core/hooks/Toc.d.ts 974 B
packages/cherry-markdown/dist/types/core/hooks/Transfer.d.ts 175 B
packages/cherry-markdown/dist/types/core/hooks/Underline.d.ts 156 B
packages/cherry-markdown/dist/types/core/HooksConfig.d.ts 523 B
packages/cherry-markdown/dist/types/core/ParagraphBase.d.ts 1.39 kB
packages/cherry-markdown/dist/types/core/SyntaxBase.d.ts 956 B
packages/cherry-markdown/dist/types/Editor.d.ts 5.68 kB
packages/cherry-markdown/dist/types/Engine.d.ts 1.55 kB
packages/cherry-markdown/dist/types/Event.d.ts 531 B
packages/cherry-markdown/dist/types/Factory.d.ts 1.02 kB
packages/cherry-markdown/dist/types/index.core.d.ts 122 B
packages/cherry-markdown/dist/types/index.d.ts 122 B
packages/cherry-markdown/dist/types/index.engine.core.d.ts 377 B
packages/cherry-markdown/dist/types/index.engine.d.ts 93 B
packages/cherry-markdown/dist/types/index.stream.d.ts 107 B
packages/cherry-markdown/dist/types/libs/rawdeflate.d.ts 87 B
packages/cherry-markdown/dist/types/locales/en_US.d.ts 1.11 kB
packages/cherry-markdown/dist/types/locales/index.d.ts 141 B
packages/cherry-markdown/dist/types/locales/ru_RU.d.ts 1.11 kB
packages/cherry-markdown/dist/types/locales/zh_CN.d.ts 1.12 kB
packages/cherry-markdown/dist/types/Logger.d.ts 441 B
packages/cherry-markdown/dist/types/Previewer.d.ts 2.81 kB
packages/cherry-markdown/dist/types/Sanitizer.d.ts 69 B
packages/cherry-markdown/dist/types/toolbars/Bubble.d.ts 1.02 kB
packages/cherry-markdown/dist/types/toolbars/BubbleFormula.d.ts 1.38 kB
packages/cherry-markdown/dist/types/toolbars/BubbleTable.d.ts 329 B
packages/cherry-markdown/dist/types/toolbars/FloatMenu.d.ts 783 B
packages/cherry-markdown/dist/types/toolbars/HiddenToolbar.d.ts 226 B
packages/cherry-markdown/dist/types/toolbars/HookCenter.d.ts 512 B
packages/cherry-markdown/dist/types/toolbars/hooks/Align.d.ts 191 B
packages/cherry-markdown/dist/types/toolbars/hooks/Audio.d.ts 322 B
packages/cherry-markdown/dist/types/toolbars/hooks/Bold.d.ts 455 B
packages/cherry-markdown/dist/types/toolbars/hooks/Br.d.ts 318 B
packages/cherry-markdown/dist/types/toolbars/hooks/ChangeLocale.d.ts 252 B
packages/cherry-markdown/dist/types/toolbars/hooks/CheckList.d.ts 353 B
packages/cherry-markdown/dist/types/toolbars/hooks/Code.d.ts 398 B
packages/cherry-markdown/dist/types/toolbars/hooks/CodeTheme.d.ts 451 B
packages/cherry-markdown/dist/types/toolbars/hooks/Color.d.ts 2.11 kB
packages/cherry-markdown/dist/types/toolbars/hooks/Copy.d.ts 697 B
packages/cherry-markdown/dist/types/toolbars/hooks/CursorPosition.d.ts 207 B
packages/cherry-markdown/dist/types/toolbars/hooks/Detail.d.ts 324 B
packages/cherry-markdown/dist/types/toolbars/hooks/DrawIo.d.ts 420 B
packages/cherry-markdown/dist/types/toolbars/hooks/Export.d.ts 195 B
packages/cherry-markdown/dist/types/toolbars/hooks/File.d.ts 319 B
packages/cherry-markdown/dist/types/toolbars/hooks/Formula.d.ts 459 B
packages/cherry-markdown/dist/types/toolbars/hooks/FullScreen.d.ts 206 B
packages/cherry-markdown/dist/types/toolbars/hooks/Graph.d.ts 736 B
packages/cherry-markdown/dist/types/toolbars/hooks/H1.d.ts 390 B
packages/cherry-markdown/dist/types/toolbars/hooks/H2.d.ts 391 B
packages/cherry-markdown/dist/types/toolbars/hooks/H3.d.ts 391 B
packages/cherry-markdown/dist/types/toolbars/hooks/Header.d.ts 505 B
packages/cherry-markdown/dist/types/toolbars/hooks/Hr.d.ts 322 B
packages/cherry-markdown/dist/types/toolbars/hooks/Image.d.ts 345 B
packages/cherry-markdown/dist/types/toolbars/hooks/InlineCode.d.ts 436 B
packages/cherry-markdown/dist/types/toolbars/hooks/Insert.d.ts 473 B
packages/cherry-markdown/dist/types/toolbars/hooks/Italic.d.ts 463 B
packages/cherry-markdown/dist/types/toolbars/hooks/Justify.d.ts 163 B
packages/cherry-markdown/dist/types/toolbars/hooks/Link.d.ts 347 B
packages/cherry-markdown/dist/types/toolbars/hooks/List.d.ts 488 B
packages/cherry-markdown/dist/types/toolbars/hooks/MobilePreview.d.ts 316 B
packages/cherry-markdown/dist/types/toolbars/hooks/Ol.d.ts 349 B
packages/cherry-markdown/dist/types/toolbars/hooks/Panel.d.ts 475 B
packages/cherry-markdown/dist/types/toolbars/hooks/Pdf.d.ts 318 B
packages/cherry-markdown/dist/types/toolbars/hooks/ProTable.d.ts 561 B
packages/cherry-markdown/dist/types/toolbars/hooks/Publish.d.ts 390 B
packages/cherry-markdown/dist/types/toolbars/hooks/QuickTable.d.ts 440 B
packages/cherry-markdown/dist/types/toolbars/hooks/Quote.d.ts 245 B
packages/cherry-markdown/dist/types/toolbars/hooks/Redo.d.ts 263 B
packages/cherry-markdown/dist/types/toolbars/hooks/Ruby.d.ts 447 B
packages/cherry-markdown/dist/types/toolbars/hooks/Search.d.ts 369 B
packages/cherry-markdown/dist/types/toolbars/hooks/Settings.d.ts 753 B
packages/cherry-markdown/dist/types/toolbars/hooks/ShortcutKey.d.ts 442 B
packages/cherry-markdown/dist/types/toolbars/hooks/Size.d.ts 300 B
packages/cherry-markdown/dist/types/toolbars/hooks/Split.d.ts 319 B
packages/cherry-markdown/dist/types/toolbars/hooks/Strikethrough.d.ts 405 B
packages/cherry-markdown/dist/types/toolbars/hooks/Sub.d.ts 372 B
packages/cherry-markdown/dist/types/toolbars/hooks/Sup.d.ts 372 B
packages/cherry-markdown/dist/types/toolbars/hooks/SwitchModel.d.ts 285 B
packages/cherry-markdown/dist/types/toolbars/hooks/Table.d.ts 364 B
packages/cherry-markdown/dist/types/toolbars/hooks/Theme.d.ts 465 B
packages/cherry-markdown/dist/types/toolbars/hooks/Toc.d.ts 320 B
packages/cherry-markdown/dist/types/toolbars/hooks/TogglePreview.d.ts 342 B
packages/cherry-markdown/dist/types/toolbars/hooks/Ul.d.ts 350 B
packages/cherry-markdown/dist/types/toolbars/hooks/Underline.d.ts 403 B
packages/cherry-markdown/dist/types/toolbars/hooks/Undo.d.ts 244 B
packages/cherry-markdown/dist/types/toolbars/hooks/Video.d.ts 322 B
packages/cherry-markdown/dist/types/toolbars/hooks/Word.d.ts 318 B
packages/cherry-markdown/dist/types/toolbars/hooks/WordCount.d.ts 376 B
packages/cherry-markdown/dist/types/toolbars/MenuBase.d.ts 2.79 kB
packages/cherry-markdown/dist/types/toolbars/PreviewerBubble.d.ts 2.88 kB
packages/cherry-markdown/dist/types/toolbars/ShortcutKeyConfigPanel.d.ts 1.38 kB
packages/cherry-markdown/dist/types/toolbars/Sidebar.d.ts 224 B
packages/cherry-markdown/dist/types/toolbars/Toc.d.ts 384 B
packages/cherry-markdown/dist/types/toolbars/Toolbar.d.ts 2.24 kB
packages/cherry-markdown/dist/types/toolbars/ToolbarRight.d.ts 156 B
packages/cherry-markdown/dist/types/UrlCache.d.ts 529 B
packages/cherry-markdown/dist/types/utils/async-render-handler.d.ts 346 B
packages/cherry-markdown/dist/types/utils/autoindent.d.ts 239 B
packages/cherry-markdown/dist/types/utils/cm-search-replace.d.ts 1.75 kB
packages/cherry-markdown/dist/types/utils/code-preview-language-setting.d.ts 169 B
packages/cherry-markdown/dist/types/utils/codeBlockContentHandler.d.ts 949 B
packages/cherry-markdown/dist/types/utils/color.d.ts 205 B
packages/cherry-markdown/dist/types/utils/config.d.ts 984 B
packages/cherry-markdown/dist/types/utils/copy.d.ts 222 B
packages/cherry-markdown/dist/types/utils/dialog.d.ts 195 B
packages/cherry-markdown/dist/types/utils/dom.d.ts 650 B
packages/cherry-markdown/dist/types/utils/downloadUtil.d.ts 426 B
packages/cherry-markdown/dist/types/utils/env.d.ts 482 B
packages/cherry-markdown/dist/types/utils/error.d.ts 185 B
packages/cherry-markdown/dist/types/utils/event.d.ts 440 B
packages/cherry-markdown/dist/types/utils/export.d.ts 422 B
packages/cherry-markdown/dist/types/utils/exportWord.d.ts 424 B
packages/cherry-markdown/dist/types/utils/external.d.ts 576 B
packages/cherry-markdown/dist/types/utils/file.d.ts 848 B
packages/cherry-markdown/dist/types/utils/footnoteHoverHandler.d.ts 889 B
packages/cherry-markdown/dist/types/utils/formulaUtilsHandler.d.ts 638 B
packages/cherry-markdown/dist/types/utils/htmlparser.d.ts 1.55 kB
packages/cherry-markdown/dist/types/utils/image.d.ts 440 B
packages/cherry-markdown/dist/types/utils/imgSizeHandler.d.ts 912 B
packages/cherry-markdown/dist/types/utils/imgToolHandler.d.ts 412 B
packages/cherry-markdown/dist/types/utils/lazyLoadImg.d.ts 2.24 kB
packages/cherry-markdown/dist/types/utils/lineFeed.d.ts 720 B
packages/cherry-markdown/dist/types/utils/listContentHandler.d.ts 634 B
packages/cherry-markdown/dist/types/utils/lookbehind-replace.d.ts 381 B
packages/cherry-markdown/dist/types/utils/LRUCache.d.ts 554 B
packages/cherry-markdown/dist/types/utils/mathjax.d.ts 218 B
packages/cherry-markdown/dist/types/utils/myersDiff.d.ts 906 B
packages/cherry-markdown/dist/types/utils/pasteHelper.d.ts 934 B
packages/cherry-markdown/dist/types/utils/platformTransform.d.ts 152 B
packages/cherry-markdown/dist/types/utils/recount-pos.d.ts 259 B
packages/cherry-markdown/dist/types/utils/regexp.d.ts 1.58 kB
packages/cherry-markdown/dist/types/utils/sanitize.d.ts 423 B
packages/cherry-markdown/dist/types/utils/shortcutKey.d.ts 543 B
packages/cherry-markdown/dist/types/utils/svgUtils.d.ts 650 B
packages/cherry-markdown/dist/types/utils/tableContentHandler.d.ts 3.25 kB

compressed-size-action

@RSS1102 RSS1102 marked this pull request as draft April 8, 2026 20:05
@RSS1102 RSS1102 requested a review from Copilot April 14, 2026 08:30
@RSS1102 RSS1102 added the skip-changeset Skip the changeset requirement for this PR label Apr 14, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reorganizes and unifies the repository’s GitHub Actions CI/CD by splitting responsibilities into dedicated PR checks, adding reusable workflows for preview/release pipelines, and improving PR preview outputs (Playground/Client/VSCode plugin) with automated deployment and commenting.

Changes:

  • Replaced legacy CI workflows with a clearer PR check suite (lint/build matrix, unit tests, spell check, changeset check, compressed size).
  • Introduced reusable workflows for npm release/dev-preview publishing, Tauri client multi-platform builds, and VSCode plugin build/package/publish.
  • Added an orchestrated PR preview pipeline: build artifacts → deploy/comment, plus streamlined GitHub Pages deployment and CNB sync workflow updates.

Reviewed changes

Copilot reviewed 32 out of 32 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/vscodePlugin/tsconfig.json Adjusts TS build output settings for the VSCode plugin (removes TS sourcemaps).
packages/vscodePlugin/rspack.config.ts Disables production sourcemaps via conditional devtool configuration.
packages/vscodePlugin/package.json Updates plugin scripts to separate build vs VSIX packaging via @vscode/vsce.
.github/workflows/test.yml Removes legacy PR test workflow (superseded by pr-test.yml).
.github/workflows/sync-cnb.yml Adds documentation/guardrails, permissions/concurrency, and fixes action reference.
.github/workflows/reusable-vscode-plugin.yml Adds reusable workflow for VSCode plugin build/package/pre-release/release.
.github/workflows/reusable-playground-build.yml Converts Playground preview build to a reusable workflow and tweaks artifact contents.
.github/workflows/reusable-npm-release.yml Adds reusable OIDC-based npm release workflow for cherry-markdown.
.github/workflows/reusable-npm-dev-preview.yml Adds reusable OIDC-based npm dev-preview publish + PR comment workflow.
.github/workflows/reusable-client-build.yml Adds reusable multi-platform Tauri client build workflow (preview artifacts / release assets).
.github/workflows/release.yml Refactors release orchestration to call reusable workflows and conditionally sync main→dev.
.github/workflows/release-vscode-plugin-build.yaml Removes legacy VSCode plugin release workflow (replaced by reusable-vscode-plugin.yml).
.github/workflows/release-client-build.yaml Removes legacy client release workflow (replaced by reusable-client-build.yml).
.github/workflows/release-cherry-markdown-build.yaml Removes legacy core npm release workflow (replaced by reusable-npm-release.yml).
.github/workflows/pr_preview-publish.yml Removes legacy PR preview publish workflow (replaced by pr-preview-build + pr-preview-deploy).
.github/workflows/pr_preview-pkg.yml Removes legacy pkg-pr-new preview workflow (replaced by pr-preview-pkg.yml).
.github/workflows/pr_merge_vscode_plugin_dev_preview.yml Removes legacy VSCode dev-preview publish-on-merge workflow (replaced by merge-dev-preview.yml + reusable-vscode-plugin.yml).
.github/workflows/pr_merge_client_dev_preview.yml Removes legacy client dev-preview build/comment workflow (replaced by reusable-client-build.yml + pr-preview-deploy.yml).
.github/workflows/pr_merge_cherry-markdown_npm-dev.yml Removes legacy npm dev-preview publish-on-merge workflow (replaced by merge-dev-preview.yml + reusable-npm-dev-preview.yml).
.github/workflows/pr-test.yml Adds PR unit test workflow (yarn test).
.github/workflows/pr-spell-check.yml Improves spell-check workflow naming/docs and adds concurrency/permissions.
.github/workflows/pr-preview-pkg.yml Adds PR preview publish via pkg-pr-new.
.github/workflows/pr-preview-deploy.yml Adds artifact-driven PR preview deploy + PR comment publishing (Playground/Client/VSCode).
.github/workflows/pr-preview-build.yml Adds PR preview build orchestrator calling reusable workflows.
.github/workflows/pr-compressed-size.yml Improves compressed-size workflow naming/docs and adds concurrency/permissions/timeouts.
.github/workflows/pr-ci.yml Adds PR CI matrix workflow (Node 20/22 lint + build).
.github/workflows/pr-changeset-check.yml Adds changeset enforcement workflow with skip conditions/label support.
.github/workflows/merge-dev-preview.yml Adds merge-to-dev orchestrator to publish npm dev preview + VSCode pre-release.
.github/workflows/github-pages.yml Removes legacy GitHub Pages deploy workflow (replaced by deploy-pages.yml).
.github/workflows/deploy-pages.yml Adds new GitHub Pages deploy workflow with improved packaging and path fixes.
.github/workflows/build.yml Removes legacy build workflow (superseded by pr-ci.yml).
.github/scripts/prepare-vscode-plugin.sh Adds CI helper to rename workspaces/packages to avoid Yarn v1 name collisions during VSCode plugin publishing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/reusable-vscode-plugin.yml
Comment thread .github/workflows/reusable-npm-release.yml
Comment thread .github/workflows/reusable-npm-dev-preview.yml
@RSS1102 RSS1102 marked this pull request as ready for review April 14, 2026 08:50
@RSS1102 RSS1102 merged commit 3cdaafd into dev Apr 14, 2026
16 of 17 checks passed
@RSS1102 RSS1102 deleted the rss1102/chore/ci-workflows branch April 14, 2026 08:50
RSS1102 added a commit that referenced this pull request Apr 14, 2026
- reusable-vscode-plugin.yml: add issues:write for pre-release PR comment
- reusable-npm-dev-preview.yml: add issues:write for dev preview PR comment

Fixes Copilot review findings on PR #1681
RSS1102 added a commit that referenced this pull request Apr 14, 2026
* ci: fix missing issues:write permission for PR comments

- reusable-vscode-plugin.yml: add issues:write for pre-release PR comment
- reusable-npm-dev-preview.yml: add issues:write for dev preview PR comment

Fixes Copilot review findings on PR #1681

* ci: fix pr-preview-build permissions for reusable-client-build

The reusable-client-build.yml requests contents:write,
but pr-preview-build.yml only granted contents:read.
ethanflin pushed a commit to ethanflin/cherry-markdown that referenced this pull request Apr 16, 2026
…Tencent#1681)

* ci(workflows): rename, optimize and unify CI with enhanced PR preview

* ci(vscode): 优化 VSCode 插件发布流程的 package.json 处理逻辑

* ci(workflow): 修复 VSCode 插件构建的 workspace 命名冲突

* ci: 修复 VSCode 插件发布流程中的 prepublish 冲突

* ci(vscode): 移除 prepublish 脚本以避免打包冲突

* ci(vscode): 优化插件发布流程,统一构建与打包命令

* ci: 重构工作流为可复用组件并优化 VSCode 插件构建流程

* chore: 修改 client 包依赖为 workspace 协议

* ci(vscode): 优化插件发布前的准备工作流

* ci: 分离 PR 预览评论并更新插件构建脚本

* ci: 启用 npm provenance 并优化工作流配置

* ci: 重构 GitHub Actions 工作流以优化构建与发布流程

* ci: 允许可复用工作流写入内容权限

* ci(workflows): 调整 client build 权限配置

* ci(pr-preview): 更新预览链接列表

* ci: 移除 Node 18 版本支持

* ci: 移除 PR commitlint 检查工作流

* ci(workflows): 简化部署流程并修复路径问题

* ci(workflows): 优化 npm 预览包发布流程及评论格式
ethanflin pushed a commit to ethanflin/cherry-markdown that referenced this pull request Apr 16, 2026
* ci: fix missing issues:write permission for PR comments

- reusable-vscode-plugin.yml: add issues:write for pre-release PR comment
- reusable-npm-dev-preview.yml: add issues:write for dev preview PR comment

Fixes Copilot review findings on PR Tencent#1681

* ci: fix pr-preview-build permissions for reusable-client-build

The reusable-client-build.yml requests contents:write,
but pr-preview-build.yml only granted contents:read.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changeset Skip the changeset requirement for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants