From 95e1e0f15dc3a1a251d3ee399894aecd2a97a375 Mon Sep 17 00:00:00 2001 From: Chau Tran Date: Sat, 9 Sep 2023 11:22:10 -0500 Subject: [PATCH] chore(repo): add release-it Closes #1 --- .release-it.json | 49 ++++++++++++++++++++++++++++++++++++ libs/ngxtension/package.json | 2 +- libs/ngxtension/version.json | 3 +++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 .release-it.json create mode 100644 libs/ngxtension/version.json diff --git a/.release-it.json b/.release-it.json new file mode 100644 index 00000000..57d49e22 --- /dev/null +++ b/.release-it.json @@ -0,0 +1,49 @@ +{ + "plugins": { + "@release-it/conventional-changelog": { + "preset": { + "name": "conventionalcommits", + "types": [ + { + "type": "feat", + "section": "Features" + }, + { + "type": "fix", + "section": "Bug Fixes" + }, + { + "type": "cleanup", + "section": "Cleanup" + }, + { + "type": "docs", + "section": "Documentations" + }, + { + "type": "refactor", + "section": "Refactor" + } + ] + }, + "infile": "CHANGELOG.md" + }, + "@release-it/bumper": { + "in": "libs/ngxtension/version.json", + "out": ["libs/ngxtension/version.json", "dist/libs/**/package.json"] + } + }, + "git": { + "commitMessage": "chore: release ${version}" + }, + "npm": { + "publish": false + }, + "github": { + "release": true, + "releaseName": "Release ${version}" + }, + "hooks": { + "after:bump": ["git checkout -- package.json"] + } +} diff --git a/libs/ngxtension/package.json b/libs/ngxtension/package.json index 826ad89e..512b152b 100644 --- a/libs/ngxtension/package.json +++ b/libs/ngxtension/package.json @@ -1,6 +1,6 @@ { "name": "ngxtension", - "version": "0.0.1", + "version": "0.0.0", "peerDependencies": { "@angular/common": "^16.0.0", "@angular/core": "^16.0.0" diff --git a/libs/ngxtension/version.json b/libs/ngxtension/version.json new file mode 100644 index 00000000..390a1170 --- /dev/null +++ b/libs/ngxtension/version.json @@ -0,0 +1,3 @@ +{ + "version": "0.0.1" +}