chore: use conventional commits and auto-generate changelog

This commit is contained in:
Vladimir Mihailenco 2021-09-17 14:25:50 +03:00
parent 7c92957d71
commit 30a3028411
5 changed files with 25 additions and 6 deletions

11
.github/workflows/commitlint.yml vendored Normal file
View File

@ -0,0 +1,11 @@
name: Lint Commit Messages
on: [pull_request]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4

View File

@ -12,4 +12,6 @@ jobs:
- uses: actions/checkout@v2
- uses: ncipollo/release-action@v1
with:
body: Check CHANGELOG.md for details
body:
Please refer to
[CHANGELOG.md](https://github.com/go-redis/redis/blob/master/CHANGELOG.md) for details

View File

@ -1,8 +1,3 @@
# Changelog
> :heart:
> [**Uptrace.dev** - All-in-one tool to optimize performance and monitor errors & logs](https://uptrace.dev)
## v8.11
- Remove OpenTelemetry metrics.

8
package.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "redis",
"version": "0.0.0",
"main": "index.js",
"repository": "git@github.com:go-redis/redis.git",
"author": "Vladimir Mihailenco <vladimir.webdev@gmail.com>",
"license": "BSD-2-clause"
}

View File

@ -58,6 +58,9 @@ do
done
sed --in-place "s/\(return \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./version.go
sed --in-place "s/\(\"version\": \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./package.json
conventional-changelog -p angular -i CHANGELOG.md -s
git checkout -b release/${TAG} master
git add -u