Skip to content

Commit 30a3028

Browse files
committed
chore: use conventional commits and auto-generate changelog
1 parent 7c92957 commit 30a3028

File tree

5 files changed

+25
-6
lines changed

5 files changed

+25
-6
lines changed

.github/workflows/commitlint.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Lint Commit Messages
2+
on: [pull_request]
3+
4+
jobs:
5+
commitlint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
with:
10+
fetch-depth: 0
11+
- uses: wagoid/commitlint-github-action@v4

.github/workflows/release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- uses: ncipollo/release-action@v1
1414
with:
15-
body: Check CHANGELOG.md for details
15+
body:
16+
Please refer to
17+
[CHANGELOG.md](https://github.com/go-redis/redis/blob/master/CHANGELOG.md) for details

CHANGELOG.md

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Changelog
2-
3-
> :heart:
4-
> [**Uptrace.dev** - All-in-one tool to optimize performance and monitor errors & logs](https://uptrace.dev)
5-
61
## v8.11
72

83
- Remove OpenTelemetry metrics.

package.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "redis",
3+
"version": "0.0.0",
4+
"main": "index.js",
5+
"repository": "git@github.com:go-redis/redis.git",
6+
"author": "Vladimir Mihailenco <vladimir.webdev@gmail.com>",
7+
"license": "BSD-2-clause"
8+
}

scripts/release.sh

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ do
5858
done
5959

6060
sed --in-place "s/\(return \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./version.go
61+
sed --in-place "s/\(\"version\": \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./package.json
62+
63+
conventional-changelog -p angular -i CHANGELOG.md -s
6164

6265
git checkout -b release/${TAG} master
6366
git add -u

0 commit comments

Comments
 (0)