Skip to content

Ensure Every PR Increments TypeScript Package Version #21

@coltenkrauter

Description

@coltenkrauter

Ensure that every pull request increments the package.json version for the package and that a pre-commit script is in place to enforce this. This task is to maintain consistent versioning and prevent unintentional omissions of version bumps. The pre-commit script will compare the package.json version in the current branch with the default branch and prompt the developer to increment the version if necessary.

Definition of Done

  • Automated Check: A GitHub Action is implemented that checks for version increment on every pull request.
  • Pre-commit Script: Add a pre-commit script to check if the version has been incremented compared to the default branch. If no increment is detected, print out a suggestion to bump the version.
  • Documentation: Include a note in the PR template reminding developers to bump the version in package.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions