Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
refactor: move semantic release config to dedicated file (#13)
Browse files Browse the repository at this point in the history
It’s too big and litters the `package.json` too much to justify merging it there.
  • Loading branch information
byCedric authored Sep 30, 2018
1 parent 43e9937 commit 4dc4eae
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 32 deletions.
23 changes: 23 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
branch: master
tagFormat: '${version}'
analyzeCommits:
path: '@semantic-release/commit-analyzer'
preset: peakfijn
releaseRules: release-rules-peakfijn
generateNotes:
path: '@semantic-release/release-notes-generator'
preset: peakfijn
verifyConditions:
- '@semantic-release/changelog'
- '@semantic-release/npm'
- semantic-release-git-branches
prepare:
- '@semantic-release/changelog'
- '@semantic-release/npm'
- path: semantic-release-git-branches
branchMerges: [develop, master]
message: |-
release: create new version ${nextRelease.version} [skip ci]
${nextRelease.notes}
32 changes: 0 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,38 +42,6 @@
"eslintConfig": {
"extends": "react-app"
},
"release": {
"branch": "master",
"tagFormat": "${version}",
"analyzeCommits": {
"path": "@semantic-release/commit-analyzer",
"preset": "peakfijn",
"releaseRules": "release-rules-peakfijn"
},
"generateNotes": [
{
"path": "@semantic-release/release-notes-generator",
"preset": "peakfijn"
}
],
"verifyConditions": [
"@semantic-release/changelog",
"@semantic-release/npm",
"semantic-release-git-branches"
],
"prepare": [
"@semantic-release/changelog",
"@semantic-release/npm",
{
"path": "semantic-release-git-branches",
"message": "release: create new version ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
"branchMerges": [
"develop",
"master"
]
}
]
},
"greenkeeper": {
"commitMessages": {
"initialBadge": "documentation: add greenkeeper badge",
Expand Down

0 comments on commit 4dc4eae

Please sign in to comment.