Skip to content

Support --no-changelog with --github-release #1959

Open

Description

@azz

Expected Behavior

Passing both --no-changelog and --github-release should create GitHub releases without writing CHANGELOG.md files.

Current Behavior

It isn't supported. Passing both flags issues an error.

Your Environment

Executable Version
lerna --version 3.13.1

Activity

  1. evocateur commented on Mar 9, 2019

    @evocateur
    Member

    It requires refactoring this block to separate changelog generation from writing out the files:

    return Promise.all([
    getStream(changelogStream).then(makeBumpOnlyFilter(pkg)),
    readExistingChangelog(pkg),
    ]).then(([newEntry, [changelogFileLoc, changelogContents]]) => {
    log.silly(type, "writing new entry: %j", newEntry);
    const content = [CHANGELOG_HEADER, newEntry, changelogContents].join(BLANK_LINE);
    return fs.writeFile(changelogFileLoc, content.trim() + EOL).then(() => {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions