Skip to content

Commit e49a04d

Browse files
committed
ci(release): fix release workflow
Ref: #65 Signed-off-by: Philip Gerke <me@philipgerke.com>
1 parent 7832971 commit e49a04d

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

.github/actions/get-version-and-changelog/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@ runs:
2828
shell: bash
2929
id: changelog
3030
run: |
31-
cz ch ${{ steps.version.outputs.version }} --dry-run
3231
{
3332
echo "changelog<<EOF"
34-
cz ch ${{ steps.version.outputs.version }} --dry-run
33+
awk -v version=$(cz version -p) '
34+
$0 ~ "^## "version" " { in_section = 1; next }
35+
$0 ~ "^## " && in_section { exit }
36+
in_section { print }
37+
' CHANGELOG.md
3538
echo "EOF"
3639
} >> "$GITHUB_OUTPUT"

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Create GitHub Release
3535
uses: softprops/action-gh-release@v2
3636
with:
37-
tag_name: "${{ steps.extract_version.outputs.version }}"
37+
tag_name: v"${{ steps.extract_version.outputs.version }}"
3838
name: "v${{ steps.extract_version.outputs.version }}"
3939
body: |
4040
${{ steps.extract_version.outputs.changelog }}

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://
77
semver.org/spec/v2.0.0.html).
88

9-
# 1.4.12 - 22.03.2025
9+
## 1.4.14 - 22.03.2025
1010

1111
### Added
1212

@@ -17,7 +17,7 @@ semver.org/spec/v2.0.0.html).
1717

1818
- NO-TICKET: Bump dependencies
1919

20-
# 1.4.11 - 28.12.2024
20+
## 1.4.11 - 28.12.2024
2121

2222
### Added
2323

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ <h3>Global</h3>
161161
<h1>Home</h1>
162162
</header>
163163

164-
<h3>freeathome-local-api-client 1.4.10</h3>
164+
<h3>freeathome-local-api-client 1.4.14</h3>
165165

166166
<section>
167167
<article>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "freeathome-local-api-client",
3-
"version": "1.4.13",
3+
"version": "1.4.14",
44
"preview": false,
55
"description": "A client library for the BUSCH-JAEGER free@home local API implemented in TypeScript",
66
"repository": {

0 commit comments

Comments
 (0)