Skip to content

Commit e89dc81

Browse files
mostronatorcoder[bot]Mostronator
andauthored
chore: prepare v0.15.0 release (#754)
* chore: prepare v0.15.0 release - Bump version to 0.15.0 in package.json - Add engines field (node >= 18.0.0) - Update CHANGELOG.md with v0.15.0 entries - Update CONTRIBUTING.md with commit conventions, quality gates, and release process * ci: add release workflow for automated GitHub Releases Triggers on tag push (v*), runs lint and tests, extracts changelog section for the version, and creates a GitHub Release automatically. * chore: update package-lock.json for v0.15.0 --------- Co-authored-by: Mostronator <mostronator@users.noreply.github.com>
1 parent 07f93ad commit e89dc81

5 files changed

Lines changed: 106 additions & 3 deletions

File tree

.github/workflows/release.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
21+
- run: npm ci
22+
23+
- run: npm run lint
24+
25+
- run: npm test
26+
27+
- name: Extract changelog for this version
28+
id: changelog
29+
run: |
30+
VERSION="${GITHUB_REF_NAME#v}"
31+
# Extract section between this version header and the next version header
32+
awk "/^## \[${VERSION}\]/{found=1; next} /^## \[/{if(found) exit} found{print}" CHANGELOG.md > /tmp/release-notes.md
33+
cat /tmp/release-notes.md
34+
35+
- name: Create GitHub Release
36+
uses: softprops/action-gh-release@v2
37+
with:
38+
body_path: /tmp/release-notes.md
39+
generate_release_notes: false
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@ 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+
## [0.15.0] - 2026-02-24
9+
10+
### Added
11+
- Community language support: communities can now configure their preferred language (#663).
12+
- Release confirmation feature: users must confirm before releasing funds, preventing accidental releases (#723).
13+
- User command logging: all commands sent by users are now logged to a dedicated log file for auditing (#717).
14+
- Unit tests for utility functions, improving test coverage (#700).
15+
- External health monitoring module: push-based heartbeat system for monitoring bot health via an external service (#753).
16+
17+
### Fixed
18+
- Persian (IRT) translation: corrected currency name from "ریال" to "تومان" (#716).
19+
- Fixed `next_arg` initialization: prevents errors when `match[2]` is undefined in command parsing (#740).
20+
21+
### Changed
22+
- Updated Mongoose from 7.x to 8.17.1 (#725).
23+
24+
### Security
25+
- Bumped `js-yaml` from 4.1.0 to 4.1.1 (#709).
26+
- Bumped `@smithy/config-resolver` from 4.0.1 to 4.4.5 (#720).
27+
- Bumped `axios` from 1.12.0 to 1.13.5 (#742).
28+
829
## [0.14.3] - 2025-10-27
930

1031
### Added

CONTRIBUTING.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,38 @@ https://help.github.com/articles/signing-commits-with-gpg/ for instructions.
7070
### Keep the git history clean
7171

7272
It's very important to keep the git history clear, light and easily browsable. This means contributors must make sure their pull requests include only meaningful commits (if they are redundant or were added after a review, they should be removed) and _no merge commits_.
73+
74+
### Commit message prefixes
75+
76+
We encourage using conventional prefixes in commit messages:
77+
78+
- `feat:` — new features (bumps minor version)
79+
- `fix:` — bug fixes (bumps patch version)
80+
- `chore:` — maintenance, dependencies, CI
81+
- `docs:` — documentation only
82+
- `test:` — test additions or fixes
83+
- `refactor:` — code changes that don't add features or fix bugs
84+
85+
Example: `feat: add community language support (#663)`
86+
87+
## Quality Gates
88+
89+
Before submitting a PR, make sure all checks pass:
90+
91+
```bash
92+
npm run format # Prettier formatting
93+
npm run lint # ESLint checks
94+
npm test # Mocha test suite
95+
```
96+
97+
CI will run these automatically on your PR.
98+
99+
## Release Process
100+
101+
Releases follow [Semantic Versioning](https://semver.org/):
102+
103+
1. Maintainer updates `version` in `package.json`
104+
2. Updates `CHANGELOG.md` with the new version section
105+
3. Commits: `chore: bump version to vX.Y.Z`
106+
4. Creates and pushes a git tag: `git tag vX.Y.Z && git push origin vX.Y.Z`
107+
5. GitHub Actions automatically creates the GitHub Release with changelog notes

package-lock.json

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"name": "lnp2pbot",
3-
"version": "0.14.3",
3+
"version": "0.15.0",
4+
"engines": {
5+
"node": ">=18.0.0"
6+
},
47
"author": "Francisco Calderón <negrunch@grunch.dev>",
58
"description": "P2P lightning network telegram bot",
69
"main": "dist/app.js",

0 commit comments

Comments
 (0)