Skip to content

Commit

Permalink
prepare changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Apr 21, 2024
1 parent 23d0703 commit dacff37
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

# Upcoming



# v0.0.1 - v0.0.3

First version, first publish
14 changes: 14 additions & 0 deletions scripts/on-version-bump.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import fs from 'fs/promises'
import packageJson from "../package.json" assert { type: 'json' };

const changelog = await fs.readFile("CHANGELOG.md", "utf-8")

const updatedChangelog = changelog.replace("# Upcoming\n", `# Upcoming
# v${packageJson.version}
Date: ${new Date().toISOString()}
`)

await fs.writeFile("CHANGELOG.md",updatedChangelog)

0 comments on commit dacff37

Please sign in to comment.