question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Always getting changelog **Note:** Version bump only for package ...

See original GitHub issue

Expected Behavior

When publishing through github action, all the commits should be in the changelog.

Current Behavior

I am running yarn workspaces with lerna. When I make a pull request and merge in master, I’m always getting Note: Version bump only for package… on all my packages. I’m running npx lerna publish --conventional-commits -m 'chore(release): publish' --registry $NPM_REGISTRY --yes on github actions and also set the fetch-depth to 0 in the git checkoutv2 action.

lerna.json

{
  "lerna": "3.19.0",
  "version": "independent",
  "npmClient": "yarn",
  "useWorkspaces": true,
  "command": {
    "publish": {
      "message": "chore(release): publish",
      "conventionalCommits": true
    },
    "version": {
      "conventionalCommits": true
    }
  },
  "packages": [
    "packages/*"
  ]
}

Context

Trying to get all commits/changes in the changelog

Your Environment

Executable Version
lerna --version npx version
yarn --version 1.22
OS Version
Ubuntu 18

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:10
  • Comments:9

github_iconTop GitHub Comments

10reactions
bertho-zerocommented, Jul 21, 2020

The changelog entry for **Note:** Version bump only for package should be more complete.

I understand this is because one or more dependencies have been updated but they could be cited.

1reaction
korgoncommented, Nov 15, 2021

Not sure if this will help anyone (since the author of the issue mentions having set this) - but the issue resolved itself for me when changing the fetch depth of the Github action:

jobs:
  Publish:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repositiory
        uses: actions/checkout@v2
        with:
          fetch-depth: "0"

Using this command to publish (forcing all packages have same version):

lerna publish --conventional-commits --no-git-reset --force-publish --yes
Read more comments on GitHub >

github_iconTop Results From Across the Web

Generating changelog automatically with Standard Version
Above, we can see that the patch version is bumped because we only committed a bug fix. Now, let's add a feature. feat:...
Read more >
Bump - Commitizen
The version is bumped automatically based on the commits. The commits should follow the rules of the committer to be parsed correctly.
Read more >
How To Automatically Generate A Helpful Changelog From ...
Creating a changelog is a usual task if a new software version is going to be released. It contains all the changes which...
Read more >
release-it - npm
Bump version (in e.g. package.json ); Git commit, tag, push ... Additionally, this changelog serves as the release notes for the GitHub or...
Read more >
7. Releasing and versioning - Python Packages
The first version of a software usually starts at 0.1.0 and increments from there. We call an increment a “bump”, and it consists...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found