build: use semantic release

Use semantic release
This commit is contained in:
Conicaw 2023-07-05 17:35:08 -05:00
parent 68be9e9f3f
commit 7a86fb93a2
No known key found for this signature in database
GPG key ID: CE0B9DEFED1E6375
3 changed files with 46 additions and 3 deletions

43
.releaserc Normal file
View 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
View file

@ -1,12 +1,12 @@
{ {
"name": "@ttshivers/nestjs-http-promise", "name": "@ttshivers/nestjs-http-promise",
"version": "2.0.0", "version": "0.0.0-semantically-release",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@ttshivers/nestjs-http-promise", "name": "@ttshivers/nestjs-http-promise",
"version": "2.0.0", "version": "0.0.0-semantically-release",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "~0.24.0", "axios": "~0.24.0",

View file

@ -1,6 +1,6 @@
{ {
"name": "@ttshivers/nestjs-http-promise", "name": "@ttshivers/nestjs-http-promise",
"version": "2.0.0", "version": "0.0.0-semantically-release",
"keywords": [ "keywords": [
"nestjs", "nestjs",
"http", "http",