Semantic Release
Prerequisites:
Install Semantic Release
Install semantic-release and the plugins you intend to use (at minimum, the base config expects @semantic-release/changelog):
Configure Semantic Release
Create a .releaserc.mjs:
Apps (not published to npm)
npm packages (published)
Options
Export | Type | Use when | Notes |
|---|---|---|---|
| object | You want to build your own | Includes conventional commits + changelog plugin. |
| object | Apps released on GitHub | Base + |
| object | Internal-only versioning | Only commit analysis (minimal side effects). |
| object | Publish to npm | Adds prerelease branches + |
| object | Monorepo app release | Extends |
| object | Monorepo internal release | Extends |
| object | Monorepo npm release | Extends |
Branch channels (npm preset)
Branch | Channel | Pre-release |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|