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

Revert changelog script change with improvements #921

Merged
merged 1 commit into from
Oct 20, 2022

Conversation

Cruikshanks
Copy link
Member

DEFRA/water-abstraction-team#59

We realised that the previous name for the script was intentional. It was so that it would be automatically kicked off when npm version was called from the command line.

Using npm version not only means the package-lock.json gets updated as well, but it also generates the correct tag for us. Finally, we can just decide the change type (major, minor or patch) and let npm work out the bump. This means we're less likely to make a mistake.

So now our process when generating a new release will be

  • decide on the change type
  • run npm version [major|minor|patch]
  • check the changes
  • push the commit

Much simpler as we don't need to be specific with version numbers.

DEFRA/water-abstraction-team#59

We realised that the previous name for the script was intentional. It was so that it would be automatically kicked off when `npm version` was called from the command line.

Using `npm version` not only means the `package-lock.json` gets updated as well, but it also generates the correct tag for us. Finally, we can just decide the change type (major, minor or patch) and let npm work out the bump. This means we're less likely to make a mistake.

So now our process when generating a new release will be

- decide on the change type
- run `npm version [major|minor|patch]`
- check the changes
- push the commit

Much simpler as we don't need to be specific with version numbers.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Oct 20, 2022
@Cruikshanks Cruikshanks self-assigned this Oct 20, 2022
@Cruikshanks Cruikshanks marked this pull request as ready for review October 20, 2022 13:42
@Cruikshanks Cruikshanks requested review from Jozzey and StuAA78 October 20, 2022 13:42
@Cruikshanks Cruikshanks merged commit ce6e057 into main Oct 20, 2022
@Cruikshanks Cruikshanks deleted the apply-new-version-bump-script branch October 20, 2022 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants