Skip to content

fix(ci): GitHub Packages 任务的冒烟输入改从检出目录读取 - #26

Merged
supermax92 merged 1 commit into
mainfrom
fix/20261008-publish-examples-from-checkout
Oct 11, 2026
Merged

supermax92 merged 1 commit into
mainfrom
fix/20261008-publish-examples-from-checkout

Conversation

@supermax92

Copy link
Copy Markdown
Owner

功能:PR #25 起 npm 包不再包含 examples/,但发布工作流的 publish(GitHub Packages)任务仍从已安装包里读 examples/jeepay/flowchart.graph.json,下次发版会在 "Install and verify the candidate" 失败。本 PR 改为从检出目录读取,与 npmjs 任务的做法一致。

修改 2 个文件

  • .github/workflows/publish-github-npm.yml:publish 任务第 52、53、74 行的示例输入由 verified/… / registry-check/… 包内路径改为检出目录的 examples/jeepay/flowchart.graph.json;被验证的仍是已安装包里的脚本。
  • tests/plugin-package.test.mjs:新增断言,工作流不得引用包内 qgraphflow/examples/ 路径。

验证:node --test tests/plugin-package.test.mjs 5/5 通过。工作流本身要到下次发版触发时才会真正运行。

注意:须在下次发版前合入 main;publish-github-npm.yml 只从 main 触发。

PR #25 起 npm 包不再包含 examples/,而 publish 任务仍从已安装包里读
examples/jeepay/flowchart.graph.json(第 52、53、74 行),下次发版会在
"Install and verify the candidate" 失败。npmjs 任务本就从检出目录复制示例,不受影响。

- 三处改为读检出目录的 examples/jeepay/flowchart.graph.json
- plugin-package 测试断言工作流不再引用包内 examples
@supermax92
supermax92 merged commit 71b4eb7 into main Oct 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant