Navigation Menu

Skip to content

Commit

Permalink
Add date to the changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
kossnocorp committed Mar 5, 2021
1 parent 31b827d commit a6697d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scripts/release/buildChangelog.ts
@@ -1,6 +1,7 @@
import { fromEntries, last, sample, uniq } from 'js-fns'
import sg from 'simple-git'
import { Octokit } from '@octokit/core'
import format from '../../src/format'

const git = sg()
const gh = new Octokit({ auth: process.env.GITHUB_TOKEN })
Expand All @@ -19,7 +20,10 @@ function renderChangelog(changelog: ChangelogVersion) {
(author) => author.login
)

let markdown = `## ${renderVersion(changelog.version)}
let markdown = `## ${renderVersion(changelog.version)} - ${format(
Date.now(),
'yyyy-MM-dd'
)}
${sample(thanksOptions)!(renderAuthors(authors))}`

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Expand Up @@ -14,7 +14,8 @@
"importHelpers": true,
"baseUrl": ".",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
"esModuleInterop": true,
"allowJs": true
},
"exclude": ["node_modules", "dist", "tmp"]
}

0 comments on commit a6697d2

Please sign in to comment.