Skip to content

Commit a377ded

Browse files
committed
feat(ci): add semantic-release config and GitHub workflow (#6)
1 parent 08200f6 commit a377ded

6 files changed

Lines changed: 7380 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 22
19+
- run: npm ci
20+
- run: npx semantic-release
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

CHANGELOG.md

Whitespace-only changes.

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,16 @@ You can define default settings in `~/.http-cli.conf`:
4242
```
4343
USER_AGENT="http-cli/0.1 (https://github.com/ql4b/http-cli)"
4444
TIMEOUT=10
45-
```
45+
```
46+
47+
## Release Strategy
48+
49+
This project uses [semantic-release](https://semantic-release.gitbook.io/) to automate versioning and changelog generation.
50+
51+
- Commits to `main` trigger **stable releases** (e.g. `v1.2.3`)
52+
- Commits to `develop` trigger **prereleases** (e.g. `v1.3.0-beta.1`)
53+
54+
Releases are based on [Conventional Commits](https://www.conventionalcommits.org/), so use commit messages like:
55+
- `feat: add new feature`
56+
- `fix: correct bug`
57+
- `chore: update metadata`

0 commit comments

Comments
 (0)