mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
chore: publish
This commit is contained in:
@@ -7,7 +7,9 @@ export function getVersionContent() {
|
||||
const changelog = fs.readFileSync('./CHANGELOG.md', 'utf8')
|
||||
// 解析CHANGELOG.md
|
||||
let lines = changelog.split('\n')
|
||||
const versionLineIndex = lines.findIndex(line => line.startsWith('## '))
|
||||
const versionLineIndex = lines.findIndex(line => {
|
||||
return line.startsWith('## [') || line.startsWith('# [')
|
||||
})
|
||||
const versionLine = lines[versionLineIndex]
|
||||
// ## [1.37.16](https://github.com/certd/certd/compare/v1.37.15...v1.37.16) (2025-12-15)
|
||||
const versionTitle = versionLine.match(/\[(.*?)\]/)[1]
|
||||
|
||||
Reference in New Issue
Block a user