Coder Social home page Coder Social logo

Comments (5)

webpro avatar webpro commented on June 15, 2024

By convention I expect this to be commitPath

from conventional-changelog.

 avatar commented on June 15, 2024

Hi @webpro,

Thanks for getting back to me.
I've also tried with commitPath without any effect. My release script looks as follows:

...
"release": "release-it  %npm_package_version% --dry-run --no-increment -r 0 --verbose --no-git.requireCleanWorkingDir",
...

And my .release-it.json config looks as follows:

{
  "git": {
    "tag": true,
    "tagName": "${version}",
    "tagAnnotation": "Release ${version}",
    "tagArgs": "",
    "push": true,
    "commit": true,
    "pushRepo": "origin"
  },
  "github": {
    "version": "${version}",
    "release": true,
    "preRelease": false
  },
  "hooks": {
    "before:init": [
      "npm run build:prod"
    ],
    "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
  },
  "npm": {
    "publish": true,
    "private": true,
    "registry": "OMITTED"
  },
  "plugins": {
    "@release-it/conventional-changelog": {
      "preset": "angular",
      "infile": "CHANGELOG.md",
      "outfile": "CHANGELOG.md",
      "commitPath": "./src"
    }
  }
}

The generated changelog and release notes contain at least 2 entries with features (feat) that comes from other folders than the ./src-folder.

from conventional-changelog.

webpro avatar webpro commented on June 15, 2024

I don't know conventional-changelog that well. I suggest to look into their docs/source code (the programmatic API, not the CLI) to see what options/arguments it takes.

Note that a dry run does not write anything.

from conventional-changelog.

webpro avatar webpro commented on June 15, 2024

Closing due to inactivity.

from conventional-changelog.

dmedinag avatar dmedinag commented on June 15, 2024

remove the "./" prefix of your path and it should work :)

from conventional-changelog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.