diff --git a/README.md b/README.md index 644250ec..1bd7e70f 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,10 @@ Added basic project st. with following features - [Mongo Database connection](https://github.com/hypersign-protocol/studio-api/commit/357436181e4a525fe50b2c8cc4a50c016a437489) - [environment var](https://github.com/hypersign-protocol/studio-api/commit/2d119e6898a772dcf6ff54e477eb5d354e9b4e18) - ## Architecture ![img](https://camo.githubusercontent.com/c26967122228485ff75c80f03d4c9816759bc8fd0dd1a9477edb9a150f92479e/68747470733a2f2f6d656469612e646973636f72646170702e6e65742f6174746163686d656e74732f313032363338323037363937363537343532342f313034393932323436383531303434393636342f696d6167652e706e673f77696474683d31313535266865696768743d363631) - ## Pre-requisites Node version `v14.20.1` @@ -82,12 +80,31 @@ $ yarn run start:prod yarn test:newman ``` +## create tag + +- bump version and create tag + +```bash + #command + yarn bumpVersion --ver ${flag/version-number} +#example + # yarn bumpVersion --ver patch // for bug fix + #yarn bumpVersion --ver minor // for minor changes + #yarn bumpVersion --ver major // for major changes + #yarn bumpVersion --ver 1.2.0 // for custom version +``` + +- push tag + +```bash + yarn pushTag +``` + ## Docs - http://localhost:3001/api - http://localhost:3001/api-json - ## Support Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support). @@ -102,3 +119,6 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors Nest is [MIT licensed](LICENSE). +``` + +``` diff --git a/package.json b/package.json index e40f55cd..24d2bace 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,8 @@ "test:cov": "jest --coverage", "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", "test:e2e": "jest --config ./test/jest-e2e.json", + "bumpVersion": "npm version --tag-version-prefix ''", + "pushTag": "git push origin --tag" "prepare": "husky install" }, "dependencies": {