Skip to content

Commit 54a0c99

Browse files
authored
Revert changelog script change with improvements (#1858)
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.
1 parent 3b40555 commit 54a0c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"migrate:create": "db-migrate create --sql-file --",
1818
"lint": "standard",
1919
"postinstall": "scripts/fix-libxmljs-location.sh",
20-
"changelog": "npx --yes auto-changelog -p --commit-limit false"
20+
"version": "npx --yes auto-changelog -p --commit-limit false && git add CHANGELOG.md"
2121
},
2222
"dependencies": {
2323
"@envage/hapi-pg-rest-api": "^7.0.0",

0 commit comments

Comments
 (0)