【问题标题】:NPM release module not detecting git repositoryNPM 发布模块未检测到 git 存储库
【发布时间】:2019-08-16 16:32:18
【问题描述】:

当我在根项目上运行“发布预测试版”时。现有项目支持单回购结构。它给了我以下错误。但实际上我的根目录下有 .git 文件夹。

[before-after-hook]:“Hook()”重新利用警告,使用“Hook.Collection()”。阅读更多:https://github.com/gr2m/before-after-hook/tree/d1e515fbc106f6130c9a644a26c711ff7bb75a9d#upgrading-to-14

√ 将版本标签添加到 0.1.3-alpha.1

√ 创建发布提交

√ 标记提交

√ 将所有内容推送到远程

错误!目录不是 Git 存储库。 错误命令失败,退出代码为 1。 info 访问https://yarnpkg.com/en/docs/cli/run 获取有关此命令的文档。

或者有任何选项可以防止使用发布模块进行推送。

Module Link

【问题讨论】:

    标签: npm release semantic-versioning monorepo


    【解决方案1】:

    这是 npm 发布模块的现有缺陷。它不适用于 Windows。

    Linux/Mac 我试过它工作正常。

    defect link

    【讨论】:

      猜你喜欢
      • 2012-10-07
      • 2017-09-08
      • 2011-08-26
      • 1970-01-01
      • 1970-01-01
      • 2018-01-03
      • 2015-12-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多