From 15ae3f327d4619ee12351e3a5f3a412653a59709 Mon Sep 17 00:00:00 2001 From: Prince Tripathi Date: Mon, 6 Jan 2025 23:04:02 +0530 Subject: [PATCH 1/3] Revert "Merge pull request #166 from dream-sports-labs/fix/release-process-config" This reverts commit 800b2ad64ac1150f5c0b03569caa6563888a4fa1, reversing changes made to 7d2d3e4e2d0818250bc831a9434c9add42294e9b. --- .release-it.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.release-it.json b/.release-it.json index 0a643fa..c0f441a 100644 --- a/.release-it.json +++ b/.release-it.json @@ -1,8 +1,7 @@ { "npm": { "publish": false, - "tag": "latest", - "version": true + "tag": "latest" }, "git": { "requireCleanWorkingDir": true, From b27b7b5bc0d227675a8f1507cd1b3273f1e56b25 Mon Sep 17 00:00:00 2001 From: Prince Tripathi Date: Mon, 6 Jan 2025 23:04:26 +0530 Subject: [PATCH 2/3] Revert "Merge pull request #164 from dream-sports-labs/chore/release-config-modified" This reverts commit 7d2d3e4e2d0818250bc831a9434c9add42294e9b, reversing changes made to 39523dce72d0d1360d280b3730664ad66afc7780. --- .release-it.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.release-it.json b/.release-it.json index c0f441a..b777d24 100644 --- a/.release-it.json +++ b/.release-it.json @@ -17,16 +17,14 @@ "plugins": { "@release-it/conventional-changelog": { "preset": "conventionalcommits", - "infile": "CHANGELOG.md" + "infile": "CHANGELOG.md" } }, "hooks": { "before:init": ["yarn lint", "yarn type-check", "yarn test"], "after:bump": [ - "git fetch origin main", - "git checkout -b release-v${version} origin/main", "git add .", - "git commit -m 'chore: update changelog and bump version to v${version}' || echo 'No changes to commit'", + "git commit -m 'chore: update changelog and bump version to v${version}'", "git push origin HEAD:release-v${version}", "echo ${version} > .version" ] From 6c738dda1c5dd46bacf3c501b74371d9333e17bf Mon Sep 17 00:00:00 2001 From: Prince Tripathi Date: Mon, 6 Jan 2025 23:06:00 +0530 Subject: [PATCH 3/3] chore: streamline release config --- .release-it.json | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.release-it.json b/.release-it.json index b777d24..68e1401 100644 --- a/.release-it.json +++ b/.release-it.json @@ -1,12 +1,13 @@ { "npm": { "publish": false, - "tag": "latest" + "tag": "latest", + "version": true }, "git": { "requireCleanWorkingDir": true, "requireBranch": "main", - "commitMessage": "Release v${version}", + "commitMessage": "chore: update changelog and bump version to v${version}", "tagName": "v${version}", "tagAnnotation": "Release v${version}", "push": false @@ -17,14 +18,21 @@ "plugins": { "@release-it/conventional-changelog": { "preset": "conventionalcommits", - "infile": "CHANGELOG.md" + "infile": "CHANGELOG.md" } }, "hooks": { - "before:init": ["yarn lint", "yarn type-check", "yarn test"], + "before:init": [ + "yarn lint", + "yarn type-check", + "yarn test" + ], + "before:bump": [ + "git fetch origin main", + "git checkout -b release-v${version} origin/main" + ], "after:bump": [ - "git add .", - "git commit -m 'chore: update changelog and bump version to v${version}'", + "git commit --allow-empty -m 'Release v${version}'", "git push origin HEAD:release-v${version}", "echo ${version} > .version" ]