
semantic-release automates the whole package release workflow including: determining the next version number, generating the release notes, and publishing the package.
범용적으로 사용되고 있는 버전 관리를 위한 NPM 패키지이다.
간단히 버전 관리를 위한 번호 붙이기 라고 생각하면 된다.
아래와 같이 각 번호는 major, minor, patch 를 의미한다.

구체적으로,

package.json 에 semantic release 세팅하는 법 예시
{
"name": "semantic-release-example",
"version": "1.742.4",
"private": true,
"dependencies": {
...
},
"scripts": {
...
},
"release": {
"plugins": [
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "src/pages/Version/CHANGELOG.mdx"
}
],
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": [
"src/pages/Version/CHANGELOG.mdx",
"package.json"
]
}
]
],
"branches": [
"staging"
]
},
...,
"devDependencies": {
"@semantic-release/changelog": "6.0.1",
"@semantic-release/git": "10.0.1",
"@semantic-release/npm": "9.0.1",
"@semantic-release/release-notes-generator": "10.0.3",
"semantic-release": "19.0.3",
}
}
jobs:
docker:
runs-on: ubuntu-latest
environment: staging
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
src/pages/Version/CHANGELOG.mdx
## [1.742.0]](https://github.com/repo-name-here/compare/v1.742.3...v1.742.4) (2024-01-04)
### Features
* **[PAGE-A][TAB-B]:** feature commit content here! [#5064](https://github.com/repo-name-here/issues/5064) ([#5071](https://github.com/repo-name-here/issues/5071)) ([f91c2d8](https://github.com/repo-name-here/commit/f91c2d810a5a288e28f0ba5563da03060348c825))
## [1.741.1](https://github.com/repo-name-here/compare/v1.741.0...v1.741.1) (2024-01-03)
### Bug Fixes
* **inquiry-cache:** inquiry re serach ([#5073](https://github.com/repo-name-here/issues/5073)) ([7da7f0b](https://github.com/brepo-name-here/commit/7da7f0bf1522188a191d302d672e1c3573114806))
* **package-status:** add untracked type ([#5072](https://github.com/repo-name-here/issues/5072)) ([34468b4](https://github.com/repo-name-here/commit/34468b48e77ed32c43adc5cca0715a7065a995df))
# [1.741.0](https://github.com/repo-name-here/compare/v1.740.4...v1.741.0) (2024-01-03)