Skip to content

Commit

Permalink
chore: remove updating changelog from release process
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasticFiasco committed Jan 16, 2025
1 parent 7bf1fee commit 9a66b52
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { basename, dirname, join } from 'path';
import { fileURLToPath } from 'url';
import { add, commit, createAnnotatedTag, pushCommitsAndTags } from './git.js';
import { fatal } from './log.js';
import { exec } from './process.js';

const packagePrompt = async () => {
// A package is defined by the following criteria:
Expand Down Expand Up @@ -69,24 +68,6 @@ const updatePackageVersion = async (packageFilePath) => {
return newVersion;
};

/**
* @param {string} filePath
*/
const updateChangelog = async (filePath) => {
const { openChangelog } = await inquirer.prompt({
type: 'confirm',
name: 'openChangelog',
message: 'Do we need to update CHANGELOG.md?',
});

if (!openChangelog) {
return;
}

const editor = process.platform === 'win32' ? 'notepad' : process.env.EDITOR || 'vim';
await exec(`${editor} ${filePath}`);
};

const main = async () => {
const p = await packagePrompt();

Expand All @@ -95,7 +76,6 @@ const main = async () => {
await add(packageFilePath);

const changelogFilePath = join(p.dir, 'CHANGELOG.md');
await updateChangelog(changelogFilePath);
await add(changelogFilePath);

await commit(`release ${p.name}@${newVersion}`);
Expand Down

0 comments on commit 9a66b52

Please sign in to comment.