Skip to content

Commit

Permalink
fix: regex to find version to bump in plugin code
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <[email protected]>
  • Loading branch information
vladdoster committed Jun 16, 2022
1 parent f2876d3 commit dd8ecf1
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
"tag": "fix",
"release": "patch"
},
{
"tag": "new",
"release": "minor"
},
{
"tag": "init",
"release": "major"
Expand All @@ -34,6 +30,10 @@
"tag": "maint",
"release": "minor"
},
{
"tag": "new",
"release": "minor"
},
{
"tag": "update",
"release": "minor"
Expand Down Expand Up @@ -67,14 +67,27 @@
"files": [
"doc/remember.txt"
],
"from": "^Version: (([v]?[0-9]).+([0-9]).+([0-9]))$",
"from": "^(-- )?Version: (([v]?[0-9]).+([0-9]).+([0-9]))$",
"to": "Version: ${nextRelease.version}",
"results": [
{
"file": "doc/remember.txt",
"hasChanged": true
}
]
},
{
"files": [
"lua/remember.lua"
],
"from": "^-- Version: (([v]?[0-9]).+([0-9]).+([0-9]))$",
"to": "-- Version: ${nextRelease.version}",
"results": [
{
"file": "lua/remember.lua",
"hasChanged": true
}
]
}
]
}
Expand All @@ -98,7 +111,8 @@
"CHANGELOG.md",
"README.md",
"VERSION",
"doc/remember.txt"
"doc/remember.txt",
"lua/remember.lua"
],
"message": "release: v${lastRelease.version || '0.0.0' } → v${nextRelease.version}\n\n${nextRelease.notes}"
}
Expand Down

0 comments on commit dd8ecf1

Please sign in to comment.