Skip to content

Commit a494066

Browse files
committed
Updated the Changelog and added a check in the package.json to ensure no more releases skip the CHANGELOG updates. fixes #99
1 parent 0f4893a commit a494066

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [[6.1.0](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.1.0)]
9+
10+
Added support for React 17
11+
12+
## [[6.0.0](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.0.0)]
13+
14+
### removed
15+
16+
Accepting by scrolling is no longer allowed and has thus been removed from the package.
17+
For details see [issue 88](https://github.com/Mastermindzh/react-cookie-consent/issues/88)
18+
819
## [[5.2.0](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/5.2.0)]
920

1021
### added

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"patch": "npm --no-git-tag-version version patch",
2222
"minor": "npm --no-git-tag-version version minor",
2323
"major": "npm --no-git-tag-version version major",
24-
"release": "npm run build && git add -A && PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag $PACKAGE_VERSION && git commit -m 'release $PACKAGE_VERSION' && git push && git push --tags && npm publish",
24+
"preversion": "grep \"\\[$npm_package_version\\]\" CHANGELOG.md > /dev/null || ( echo 'You need to add an entry in CHANGELOG.md for this version.' && false )",
25+
"release": "npm run build && git add -A && git tag $npm_package_version && git commit -m 'release $npm_package_version' && git push && git push --tags && npm publish",
2526
"release-patch": "npm run patch && npm run release",
2627
"release-minor": "npm run minor && npm run release",
2728
"release-major": "npm run major && npm run release"

0 commit comments

Comments
 (0)