Skip to content

commit step does nothing if bump and changelog are skipped #862

Open
@smoldaner

Description

@smoldaner

Describe the bug

The commit lifecycle step does nothing if bump and changelog are skipped. We use standardVersion in three steps:

standardVersion({
  skip: {
    commit: true,
    tag: true,
    changelog: true
  }
})
// other things happen here
standardVersion({
  skip: {
    commit: true,
    tag: true,
    bump: true
  }
})
// other things happen here
standardVersion({
  commitAll: true,
  skip: {
    bump: true,
    changelog: true
  }
})

Current behavior

The commit step does nothing, as it checks if bump and changelog are skipped. Even if commitAll is true. The tag step however is executed as expected.

Expected behavior

The commit step should not depend on other lifecycle steps. At least I would expect, that commitAll enables the commit in any way.

Environment

  • standard-version version: 9.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions