Skip to content

Commit

Permalink
feat(symanticrelease): symantic release configuration and script
Browse files Browse the repository at this point in the history
  • Loading branch information
aladin committed Oct 8, 2019
1 parent 2fb505e commit 26aeec5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"branches": [
"master",
{"name":"develop", "channel":"next"},
{"name": "pre/rc", "prerelease": "${name.replace(/^pre\\//g,'')}"}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/git",
{
"assets": ["package-lock.json","package.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"bugs": "https://github.com/0xb4lamx/nestjs-boilerplate-microservice/issues",
"scripts": {
"release": "npx -p @semantic-release/changelog -p @semantic-release/git@beta -p semantic-release@beta semantic-release --no-ci",
"commit": "npx git-cz",
"build": "rimraf dist && tsc -p tsconfig.build.json",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
Expand Down

0 comments on commit 26aeec5

Please sign in to comment.