diff --git a/.releaserc.json b/.releaserc.json index 416a675..c04fc8f 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -22,10 +22,6 @@ "tag": "fix", "release": "patch" }, - { - "tag": "new", - "release": "minor" - }, { "tag": "init", "release": "major" @@ -34,6 +30,10 @@ "tag": "maint", "release": "minor" }, + { + "tag": "new", + "release": "minor" + }, { "tag": "update", "release": "minor" @@ -67,7 +67,7 @@ "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": [ { @@ -75,6 +75,19 @@ "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 + } + ] } ] } @@ -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}" }