Repository navigation
fix(ci): GitHub Packages 任务的冒烟输入改从检出目录读取 - #26
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能: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.mjs5/5 通过。工作流本身要到下次发版触发时才会真正运行。注意:须在下次发版前合入 main;
publish-github-npm.yml只从 main 触发。