Skip to content

Commit

Permalink
install semver (#45)
Browse files Browse the repository at this point in the history
* install semver

* add script
  • Loading branch information
flashdesignory committed May 21, 2024
1 parent c64c1a6 commit 176b8d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 28 deletions.
35 changes: 8 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"prepare": "husky install",
"format:check": "prettier --check '**/*.{ts,js}'",
"lint:check": "eslint '**/*.{ts,js}'",
"test": "jest"
"test": "jest",
"release:major": "npm run build && npm version $(semver $npm_package_version -i major) && npm publish --tag latest && git push",
"release:minor": "npm run build && npm version $(semver $npm_package_version -i minor) && npm publish --tag latest && git push",
"release:patch": "npm run build && npm version $(semver $npm_package_version -i patch) && npm publish --tag latest && git push"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -54,5 +57,8 @@
"eslint --fix",
"prettier --write --ignore-unknown"
]
},
"dependencies": {
"semver": "^7.6.2"
}
}

0 comments on commit 176b8d1

Please sign in to comment.