最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Nx release command doesn't automatically push the release commit and tags - Stack Overflow

programmeradmin1浏览0评论

I have the following minimalistic nx.json config:

{
  "$schema": "./node_modules/nx/schemas/nx-schema.json",
  "targetDefaults": {
    "build": {
      "dependsOn": ["^build"],
      "outputs": ["{projectRoot}/dist"],
      "cache": true
    }
  },
  "tasksRunnerOptions": {
    // ...
  },
  "release": {
    "projects": ["*"],
    "projectsRelationship": "independent",
    "version": {
      "conventionalCommits": true
    },
    "changelog": {
      "projectChangelogs": true
    }
  }
}

Everything works great, however when I run the npx nx release --skip-publish command, it creates and tag the commit well but doesn't push the changes.

The workaround I have is to push manually using npx nx release --skip-publish && git push --follow-tags.

Nx should be able to do the push as the --git-push boolean option exists for the commands nx release version and nx release changelog according to the documentation.

So do know if there is a way to tell Nx to push when using npx nx release?

Thanks in advance for your help

发布评论

评论列表(0)

  1. 暂无评论