diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index b5df7d8..170e1aa 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 18e64c1..cbbea97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 + diff --git a/README.md b/README.md index 5f89d79..a49550c 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/package.json b/package.json index d87ec3f..47b75ec 100644 --- a/package.json +++ b/package.json @@ -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",