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 #463

Merged
merged 2 commits into from
Oct 20, 2022

Conversation

Jozzey
Copy link
Contributor

@Jozzey Jozzey commented Oct 20, 2022

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.
@Jozzey Jozzey added the housekeeping Refactoring, tidying up or other work which supports the project label Oct 20, 2022
@Jozzey Jozzey self-assigned this Oct 20, 2022
@Jozzey Jozzey marked this pull request as ready for review October 20, 2022 13:38
@Jozzey Jozzey requested review from Cruikshanks and StuAA78 October 20, 2022 13:38
@Jozzey Jozzey merged commit 6dd1b79 into main Oct 20, 2022
@Jozzey Jozzey deleted the apply-new-version-bump-script branch October 20, 2022 13:55
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