From e30c0e01450d37d25a300ec6ffd707528e12df60 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 21 Mar 2024 15:44:44 -0700 Subject: [PATCH] Drop changelog Closes gh-5 --- CHANGELOG.adoc | 17 ----------------- npm/version.js | 15 --------------- 2 files changed, 32 deletions(-) delete mode 100644 CHANGELOG.adoc diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc deleted file mode 100644 index 1fe0d74..0000000 --- a/CHANGELOG.adoc +++ /dev/null @@ -1,17 +0,0 @@ -= Antora Zip Contents Collector Extension Changelog -:url-repo: https://github.com/spring-io/antora-zip-contents-collector-extension - -This is a summary of all notable changes to the Antora Zip Contents Collector Extension by release. -For a detailed view of what's changed, refer to the {url-repo}/commits[commit history] of this project. - -== 1.0.0-alpha.3 (2024-03-21) - -_No changes since previous release._ - -== 1.0.0-alpha.2 (2024-03-20) - -_No changes since previous release._ - -== 1.0.0-alpha.1 (2024-03-19) - -_Initial prerelease of the software._ diff --git a/npm/version.js b/npm/version.js index 675fef8..680a2aa 100644 --- a/npm/version.js +++ b/npm/version.js @@ -4,7 +4,6 @@ const { promises: fsp } = require('fs') const ospath = require('path') const PROJECT_ROOT_DIR = ospath.join(__dirname, '..') -const CHANGELOG_FILE = ospath.join(PROJECT_ROOT_DIR, 'CHANGELOG.adoc') const PACKAGE_LOCK_FILE = ospath.join(PROJECT_ROOT_DIR, 'package-lock.json') const PACKAGES_DIR = ospath.join(PROJECT_ROOT_DIR, 'packages') const VERSION = process.env.npm_package_version @@ -13,18 +12,6 @@ function getCurrentDate (now = new Date()) { return new Date(now.getTime() - now.getTimezoneOffset() * 60000) } -function updateChangelog (releaseDate) { - return fsp.readFile(CHANGELOG_FILE, 'utf8').then((changelog) => - fsp.writeFile( - CHANGELOG_FILE, - changelog.replace(/^== (?:(Unreleased)|\d.*)$/m, (currentLine, replace) => { - const newLine = `== ${VERSION} (${releaseDate})` - return replace ? newLine : [newLine, '_No changes since previous release._', currentLine].join('\n\n') - }) - ) - ) -} - function updatePackageLock () { return fsp.readdir(PACKAGES_DIR, { withFileTypes: true }).then((dirents) => { const packageNames = dirents.filter((dirent) => dirent.isDirectory()).map(({ name }) => name) @@ -64,7 +51,5 @@ function updatePackageLock () { } ;(async () => { - const releaseDate = getCurrentDate().toISOString().split('T')[0] - await updateChangelog(releaseDate) await updatePackageLock() })()