From 05c7bdcb6ca56117e9fadcaa0384e0d464026a9e Mon Sep 17 00:00:00 2001 From: Andrea Piai Date: Tue, 27 Feb 2024 14:53:08 +0100 Subject: [PATCH] Added auto-changelog --- package.json | 6 +++++- yarn.lock | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3801edd..2a34598 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,8 @@ "release-it": { "git": { "commitMessage": "chore: release ${version}", - "tagName": "v${version}" + "tagName": "v${version}", + "changelog": "yarn auto-changelog --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs" }, "npm": { "publish": false @@ -156,5 +157,8 @@ } ] ] + }, + "dependencies": { + "auto-changelog": "^2.4.0" } } diff --git a/yarn.lock b/yarn.lock index 2668792..634817e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2578,6 +2578,7 @@ __metadata: "@release-it/conventional-changelog": ^5.0.0 "@types/jest": ^29.5.5 "@types/react": ^18.2.44 + auto-changelog: ^2.4.0 commitlint: ^17.0.2 del-cli: ^5.1.0 eslint: ^8.51.0 @@ -3797,6 +3798,21 @@ __metadata: languageName: node linkType: hard +"auto-changelog@npm:^2.4.0": + version: 2.4.0 + resolution: "auto-changelog@npm:2.4.0" + dependencies: + commander: ^7.2.0 + handlebars: ^4.7.7 + node-fetch: ^2.6.1 + parse-github-url: ^1.0.2 + semver: ^7.3.5 + bin: + auto-changelog: src/index.js + checksum: 554270a24b4bd2c7485d8529f1f66db9b11bcaada959b06c4af57b135eff197dfb393d8009c1f609d46d33e413d25fb50bc264c376d346cdf41486a8b675768b + languageName: node + linkType: hard + "available-typed-arrays@npm:^1.0.6, available-typed-arrays@npm:^1.0.7": version: 1.0.7 resolution: "available-typed-arrays@npm:1.0.7" @@ -4557,6 +4573,13 @@ __metadata: languageName: node linkType: hard +"commander@npm:^7.2.0": + version: 7.2.0 + resolution: "commander@npm:7.2.0" + checksum: 53501cbeee61d5157546c0bef0fedb6cdfc763a882136284bed9a07225f09a14b82d2a84e7637edfd1a679fb35ed9502fd58ef1d091e6287f60d790147f68ddc + languageName: node + linkType: hard + "commander@npm:^9.4.1": version: 9.5.0 resolution: "commander@npm:9.5.0" @@ -9771,7 +9794,7 @@ __metadata: languageName: node linkType: hard -"node-fetch@npm:^2.2.0, node-fetch@npm:^2.6.0, node-fetch@npm:^2.6.7": +"node-fetch@npm:^2.2.0, node-fetch@npm:^2.6.0, node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.7": version: 2.7.0 resolution: "node-fetch@npm:2.7.0" dependencies: @@ -10284,6 +10307,15 @@ __metadata: languageName: node linkType: hard +"parse-github-url@npm:^1.0.2": + version: 1.0.2 + resolution: "parse-github-url@npm:1.0.2" + bin: + parse-github-url: ./cli.js + checksum: a19b8bc6f8908a24cb63a10ff90cd39cec0745615a272ec686803684653be34eb3e638e31a66c8ee3a9568082ff686eaf010181688000a6274c86a23e9220f2f + languageName: node + linkType: hard + "parse-json@npm:^4.0.0": version: 4.0.0 resolution: "parse-json@npm:4.0.0"