Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure Every PR Increments TypeScript Package Version #21

Open
3 tasks
coltenkrauter opened this issue Sep 9, 2024 · 0 comments
Open
3 tasks

Ensure Every PR Increments TypeScript Package Version #21

coltenkrauter opened this issue Sep 9, 2024 · 0 comments

Comments

@coltenkrauter
Copy link
Contributor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant