Skip to content

Commit

Permalink
Revert changelog script change with improvements (#313)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Cruikshanks authored Oct 20, 2022
1 parent fe487c3 commit 27c5707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"migrate": "node scripts/create-schema && db-migrate up --verbose",
"migrate:down": "db-migrate down --verbose",
"migrate:create": "db-migrate create --sql-file --",
"changelog": "npx --yes auto-changelog -p --commit-limit false"
"version": "npx --yes auto-changelog -p --commit-limit false && git add CHANGELOG.md"
},
"dependencies": {
"@envage/hapi-pg-rest-api": "^7.0.0",
Expand Down

0 comments on commit 27c5707

Please sign in to comment.