Remove automatic changelog update

This commit is contained in:
bl00dymarie
2023-11-17 16:05:26 +01:00
parent e576c5dc7d
commit 486dd185e2
5 changed files with 1 additions and 47 deletions
-1
View File
@@ -10,7 +10,6 @@ npm run release
This will trigger the following: This will trigger the following:
* update version number * update version number
* create a new tag for the release * create a new tag for the release
* update the changelog
* make a release commit * make a release commit
To then bundle a release run the following command on your branch: To then bundle a release run the following command on your branch:
-1
View File
@@ -22,7 +22,6 @@
"update-version": "node ./tools/bin/update-version.js", "update-version": "node ./tools/bin/update-version.js",
"commit-release": "node ./tools/bin/commit-release.js", "commit-release": "node ./tools/bin/commit-release.js",
"tag-release": "node ./tools/bin/tag-release.js", "tag-release": "node ./tools/bin/tag-release.js",
"update-changelog": "node ./tools/bin/update-changelog.js",
"release": "node ./tools/release-wizard.js", "release": "node ./tools/release-wizard.js",
"clear": ". scripts/clear.sh", "clear": ". scripts/clear.sh",
"postinstall": "npx jetify", "postinstall": "npx jetify",
-12
View File
@@ -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)
}
})()
+1 -14
View File
@@ -1,7 +1,6 @@
const readline = require('readline') const readline = require('readline')
const updateVersion = require('./update-version') const updateVersion = require('./update-version')
const createTagForRelease = require('./tag-release') const createTagForRelease = require('./tag-release')
const updateChangelog = require('./update-changelog')
const makeCommitRelease = require('./commit-release') const makeCommitRelease = require('./commit-release')
process.on('unhandledRejection', err => { throw(err) }) process.on('unhandledRejection', err => { throw(err) })
@@ -16,22 +15,10 @@ async function leadThroughRelease() {
input: process.stdin, input: process.stdin,
output: process.stdout, 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() 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: 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 'your-branch'
git push origin ${require('../package.json').version} git push origin ${require('../package.json').version}
-19
View File
@@ -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()
})
})
}