Skip to content

Commit

Permalink
fix: version replacement checks
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdoster authored Apr 13, 2022
1 parent 5ad34c9 commit 64096a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
["@google/semantic-release-replace-plugin", {
"replacements": [
{
"files": ["VERSION"],
"files": ["README.md", "VERSION"],
"from": "^([v]?[0-9]).+([0-9]).+([0-9])?$",
"to": "v${nextRelease.version}",
"results": [ { "file": "VERSION", "hasChanged": true }
"results": [
{ "file": "README.md", "hasChanged": true},
{ "file": "VERSION", "hasChanged": true}
]
}
]
Expand All @@ -28,7 +30,7 @@
["@semantic-release/release-notes-generator", { "preset": "eslint" }],
["@semantic-release/changelog", { "changelogFile": "CHANGELOG.md" } ],
["@semantic-release/git", {
"assets": ["CHANGELOG.md", "VERSION"],
"assets": ["CHANGELOG.md", "VERSION", "README.md"],
"message": "release: ${lastRelease.version || 'v0.0.0' } → ${nextRelease.version}\n\n${nextRelease.notes}"
}
],
Expand Down

0 comments on commit 64096a1

Please sign in to comment.