2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.