{"id":23435542,"url":"https://github.com/customcommander/lerna-prerelease-conventional-commits","last_synced_at":"2025-10-26T19:40:04.940Z","repository":{"id":73818523,"uuid":"254674556","full_name":"customcommander/lerna-prerelease-conventional-commits","owner":"customcommander","description":"Can Lerna bump prerelease version according to the Conventional Commits specification?","archived":false,"fork":false,"pushed_at":"2020-04-13T10:21:36.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T17:47:43.982Z","etag":null,"topics":["conventional-commits","lerna","monorepo"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/customcommander.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-10T15:51:24.000Z","updated_at":"2020-04-13T10:21:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"daf4cce1-b072-47d3-8650-4f5b848d7198","html_url":"https://github.com/customcommander/lerna-prerelease-conventional-commits","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/customcommander/lerna-prerelease-conventional-commits","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customcommander%2Flerna-prerelease-conventional-commits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customcommander%2Flerna-prerelease-conventional-commits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customcommander%2Flerna-prerelease-conventional-commits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customcommander%2Flerna-prerelease-conventional-commits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/customcommander","download_url":"https://codeload.github.com/customcommander/lerna-prerelease-conventional-commits/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customcommander%2Flerna-prerelease-conventional-commits/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261362461,"owners_count":23147387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conventional-commits","lerna","monorepo"],"created_at":"2024-12-23T12:51:50.434Z","updated_at":"2025-10-26T19:40:04.836Z","avatar_url":"https://github.com/customcommander.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Summary\n\nIn this repository I will show that Lerna 3.20.2 does not bump prerelease packages\naccording to the [\"Conventional Commits\" specification][cc-spec].\n\nWhether this is a bug or by design is unknown at this stage. However the thread in this [issue][gh-issue] seems to suggest that it is a bug.\n\nFollow-ups:\n\n- See my [question on Stack Overflow][so-question].\n- See the [issue][gh-my-issue] I raised.\n\n## Minimal Reproducible Example\n\n\n### TL; DR\n\n```\ngit clone https://github.com/customcommander/lerna-prerelease-conventional-commits.git\ncd lerna-prerelease-conventional-commits\n./run.sh\n```\n\n---\n\nI have setup two separate repositories in a Docker container.\n\nBoth are Lerna-managed monorepos with three sub-packages. However the packages in the second repositories are in a prerelease state:\n\n```\ndev (or dev-prerelease)\n  |-- packages\n  |   |-- major\n  |   |   |-- package.json (1.0.0 or 1.0.0-alpha.0)\n  |   |-- minor\n  |   |   |-- package.json (1.0.0 or 1.0.0-alpha.0)\n  |   |-- patch\n  |   |   |-- package.json (1.0.0 or 1.0.0-alpha.0)\n  |-- package.json\n  |-- lerna.json\n```\n\nI will then make the following commits in both repositories:\n\n1. A breaking change in the `major` package\n2. A new feature in the `minor` package\n3. A bug fix in the `patch` package\n\nI then run the following command in both repositories:\n\n```\nnpx lerna publish --conventional-commits --yes 2\u003e/dev/null\n```\n\n### Observations\n\nLerna does bump the non-prerelease versions correctly:\n\n```\nChanges:\n - major: 1.0.0 =\u003e 2.0.0 (private)\n - minor: 1.0.0 =\u003e 1.1.0 (private)\n - patch: 1.0.0 =\u003e 1.0.1 (private)\n```\n\nHowever the prerelease versions see a patch update only:\n\n```\nChanges:\n - major: 1.0.0-alpha.0 =\u003e 1.0.0-alpha.1 (private)\n - minor: 1.0.0-alpha.0 =\u003e 1.0.0-alpha.1 (private)\n - patch: 1.0.0-alpha.0 =\u003e 1.0.0-alpha.1 (private)\n```\n\n[cc-spec]: https://www.conventionalcommits.org/\n[gh-issue]: https://github.com/lerna/lerna/issues/1433\n[so-question]: https://stackoverflow.com/q/61144530/1244884\n[gh-my-issue]: https://github.com/lerna/lerna/issues/2536\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustomcommander%2Flerna-prerelease-conventional-commits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcustomcommander%2Flerna-prerelease-conventional-commits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustomcommander%2Flerna-prerelease-conventional-commits/lists"}