From 486dd185e2068804d9c321ed239d45b71f574bff Mon Sep 17 00:00:00 2001 From: bl00dymarie Date: Fri, 17 Nov 2023 16:05:26 +0100 Subject: [PATCH] Remove automatic changelog update --- RELEASE.md | 1 - package.json | 1 - tools/bin/update-changelog.js | 12 ------------ tools/release-wizard.js | 15 +-------------- tools/update-changelog.js | 19 ------------------- 5 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 tools/bin/update-changelog.js delete mode 100755 tools/update-changelog.js diff --git a/RELEASE.md b/RELEASE.md index 9a7f35d..992b179 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -10,7 +10,6 @@ npm run release This will trigger the following: * update version number * create a new tag for the release -* update the changelog * make a release commit To then bundle a release run the following command on your branch: diff --git a/package.json b/package.json index ab3810e..c888675 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "update-version": "node ./tools/bin/update-version.js", "commit-release": "node ./tools/bin/commit-release.js", "tag-release": "node ./tools/bin/tag-release.js", - "update-changelog": "node ./tools/bin/update-changelog.js", "release": "node ./tools/release-wizard.js", "clear": ". scripts/clear.sh", "postinstall": "npx jetify", diff --git a/tools/bin/update-changelog.js b/tools/bin/update-changelog.js deleted file mode 100644 index d1ee07c..0000000 --- a/tools/bin/update-changelog.js +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env node - -const updateChangelog = require('../update-changelog'); - -(async () => { - try { - await updateChangelog() - } catch(err) { - console.error(err) - process.exit(1) - } -})() \ No newline at end of file diff --git a/tools/release-wizard.js b/tools/release-wizard.js index d864426..768581a 100644 --- a/tools/release-wizard.js +++ b/tools/release-wizard.js @@ -1,7 +1,6 @@ const readline = require('readline') const updateVersion = require('./update-version') const createTagForRelease = require('./tag-release') -const updateChangelog = require('./update-changelog') const makeCommitRelease = require('./commit-release') process.on('unhandledRejection', err => { throw(err) }) @@ -16,22 +15,10 @@ async function leadThroughRelease() { input: process.stdin, output: process.stdout, }) - const shouldUpdateChangelog = await new Promise(resolve => { - rl.question('Would you like to update the changelog (y/n)?', yn => { - yn === 'y' || yn === 'Y' ? resolve(true) : resolve(false) - }) - }) - - if (shouldUpdateChangelog) { - await updateChangelog() - await new Promise(resolve => { - rl.question("Awesome. We've added all commits for this release to the changelog file. Please review, edit and summarize where necessary so it's useful for the app's users. Then come back here and press enter.", () => resolve()) - }) - } await makeCommitRelease() - console.log(`Groovy. We've created a commit for this release that includes the version and changelog updates, as well as a git tag for the release. + console.log(`Groovy. We've created a commit for this release that includes the version, as well as a git tag for the release. Please review it, make any necessary changes, and if it's all good, push the commit and the tag up to 'your-branch' by running: git push origin 'your-branch' git push origin ${require('../package.json').version} diff --git a/tools/update-changelog.js b/tools/update-changelog.js deleted file mode 100755 index 322def6..0000000 --- a/tools/update-changelog.js +++ /dev/null @@ -1,19 +0,0 @@ -const updateChangelog = require('basic-changelog') - -const opts = { - filterCommitsStartingWith: ['release:'] -} - -module.exports = () => { - return new Promise((resolve, reject) => { - updateChangelog('./CHANGELOG.md', opts, err => { - if (err) { - console.error('Something went wrong trying to update the changelog:') - reject(err) - return - } - console.log('Changelog successfully updated') - resolve() - }) - }) -} \ No newline at end of file