mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 11:42:19 +08:00
13 lines
311 B
JavaScript
13 lines
311 B
JavaScript
import yaml from 'yaml'
|
|
import { readFileSync, writeFileSync } from 'fs'
|
|
|
|
const pkg = readFileSync('package.json', 'utf-8')
|
|
const changelog = readFileSync('changelog.md', 'utf-8')
|
|
const { version } = JSON.parse(pkg)
|
|
const latest = {
|
|
version,
|
|
changelog
|
|
}
|
|
|
|
writeFileSync('latest.yml', yaml.stringify(latest))
|