发布包到注册表。
publish 命令将包发布到各自的注册表。它会:
cargo publish、npm publish)| 选项 | 简写 | 说明 |
|---|---|---|
--github-release <布尔值> |
-r |
创建 GitHub release(默认:true) |
--allow-dirty |
-d |
允许有未提交更改的 git 仓库 |
发布前,Semifold 使用配置的 pre-check.url 检查版本是否已存在:
如果版本已存在,将跳过发布并显示警告。
在 CI 中运行且 --github-release(默认:true)时:
{package-name}-{version}--allow-dirty)| 变量 | 说明 |
|---|---|
GITHUB_TOKEN |
用于创建 release 的 GitHub token(CI 中必需) |