Skip to content

Commit

Permalink
chore: use conventional commits and auto-generate changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Sep 17, 2021
1 parent 7c92957 commit 30a3028
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 0 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "redis",
"version": "0.0.0",
"main": "index.js",
"repository": "[email protected]:go-redis/redis.git",
"author": "Vladimir Mihailenco <[email protected]>",
"license": "BSD-2-clause"
}
3 changes: 3 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30a3028

Please sign in to comment.