Skip to content

Commit

Permalink
fix: changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
shuta13 committed Apr 19, 2024
1 parent b2128ec commit 416a782
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ jobs:
run: |
npm version ${{ github.event.inputs.tag }} -m "chore: version up ${{ github.event.inputs.tag }}"
git push origin "v${{ github.event.inputs.tag }}"
npm run changelog
npx git-cliff --tag ${{ github.event.inputs.tag }} > temp.md
cat CHANGELOG.md >> temp.md
mv temp.md CHANGELOG.md
git add CHANGELOG.md
git commit -m "chore: generate changelog of ${{ github.event.inputs.tag }}"
git push origin HEAD
Expand Down
71 changes: 71 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,21 @@

All notable changes to this project will be documented in this file.

### ⚙️ Miscellaneous Tasks

- Generate changelog of 0.0.6

## [0.0.6] - 2024-04-19

### 🐛 Bug Fixes

- Changelog
- Benchmark

### 🚜 Refactor

- Format

### 📚 Documentation

- Add ci status badge
Expand All @@ -12,4 +25,62 @@ All notable changes to this project will be documented in this file.

- Version up 0.0.6

## [0.0.5] - 2024-04-18

### 🚀 Features

- Benchmark

### 🐛 Bug Fixes

- Version command
- Version command

### 🚜 Refactor

- Format

### 📚 Documentation

- Add quick start

### ⚙️ Miscellaneous Tasks

- Generate changelog of 0.0.4
- Version up 0.0.5

## [0.0.4] - 2024-04-18

### 🐛 Bug Fixes

- Commit changelog

### ⚙️ Miscellaneous Tasks

- Version up 0.0.4

## [0.0.3] - 2024-04-18

### ⚙️ Miscellaneous Tasks

- Version up 0.0.3

## [0.0.2] - 2024-04-18

### 🧪 Testing

- For cli

### ⚙️ Miscellaneous Tasks

- Initial commit
- Set engines
- Setup ci
- Setup cd
- Try 0.0.1
- Generate changelog 0.0.1
- Empty commit for release 0.0.2
- Version up 0.0.2
- Setup git-cliff

<!-- generated by git-cliff -->
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ In addition, for variables referenced within text/template, you can convert to t

> [!NOTE]
>
> By attaching OnlyAlphanumeric to the end of each case modifier (e.g. pascalOnlyAlphanumeric), if the first character of the string is **not alphanumeric**, it is excluded and the case is converted.
> For example, [projectId] is converted to ProjectId with pascalOnlyAlphanumeric.
> By attaching `OnlyAlphanumeric` to the end of each case modifier (e.g. `pascalOnlyAlphanumeric`), if the first character of the string is **not alphanumeric**, it is excluded and the case is converted.
> For example, `[projectId]` is converted to `ProjectId` with `pascalOnlyAlphanumeric`.
The content consists of headings and code blocks as follows.

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"format:ts": "run-s format:prettier format:eslint",
"format:prettier": "prettier --write \"**/*.{ts,js,json,md}\"",
"format:eslint": "eslint --fix \"**/*.{ts,js}\"",
"changelog": "git-cliff -o CHANGELOG.md"
"changelog": "git-cliff",
"changelog:init": "git-cliff -o CHANGELOG.md"
},
"devDependencies": {
"@swc/core": "^1.4.12",
Expand Down

0 comments on commit 416a782

Please sign in to comment.