build: use semantic release
Use semantic release
This commit is contained in:
parent
68be9e9f3f
commit
7a86fb93a2
3 changed files with 46 additions and 3 deletions
43
.releaserc
Normal file
43
.releaserc
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"plugins": [
|
||||
["@semantic-release/commit-analyzer", {
|
||||
"preset": "conventionalcommits",
|
||||
"releaseRules": [
|
||||
{ "breaking": true, "release": "major" },
|
||||
{ "revert": true, "release": "patch" },
|
||||
{ "type": "build", "release": "patch" },
|
||||
{ "type": "docs", "release": "patch" },
|
||||
{ "type": "feat", "release": "minor" },
|
||||
{ "type": "fix", "release": "patch" },
|
||||
{ "type": "perf", "release": "patch" },
|
||||
{ "type": "refactor", "release": "patch" }
|
||||
]
|
||||
}],
|
||||
|
||||
["@semantic-release/release-notes-generator", {
|
||||
"preset": "conventionalcommits",
|
||||
"presetConfig": {
|
||||
"types": [
|
||||
{ "type": "build", "section": "Build", "hidden": false },
|
||||
{ "type": "chore", "section": "Chores", "hidden": false },
|
||||
{ "type": "ci", "section": "CI/CD", "hidden": false },
|
||||
{ "type": "docs", "section": "Docs", "hidden": false },
|
||||
{ "type": "feat", "section": "Features", "hidden": false },
|
||||
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
|
||||
{ "type": "perf", "section": "Performance", "hidden": false },
|
||||
{ "type": "refactor", "section": "Refactor", "hidden": false },
|
||||
{ "type": "style", "section": "Code Style", "hidden": false },
|
||||
{ "type": "test", "section": "Tests", "hidden": false }
|
||||
]
|
||||
}
|
||||
}],
|
||||
|
||||
["@semantic-release/npm", {
|
||||
"tarballDir": "package"
|
||||
}],
|
||||
|
||||
["@semantic-release/github", {
|
||||
"assets": "package/*.tgz"
|
||||
}]
|
||||
]
|
||||
}
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@ttshivers/nestjs-http-promise",
|
||||
"version": "2.0.0",
|
||||
"version": "0.0.0-semantically-release",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@ttshivers/nestjs-http-promise",
|
||||
"version": "2.0.0",
|
||||
"version": "0.0.0-semantically-release",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"axios": "~0.24.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@ttshivers/nestjs-http-promise",
|
||||
"version": "2.0.0",
|
||||
"version": "0.0.0-semantically-release",
|
||||
"keywords": [
|
||||
"nestjs",
|
||||
"http",
|
||||
|
|
Loading…
Reference in a new issue