@lobehub/semantic-release-config
v3.0.1
Published
Semantic release configuration for LobeHub projects
Maintainers
Keywords
Readme
Semantic release configuration for LobeHub projects
Features
- Gitmoji commit convention
- Automated versioning and changelog
- GitHub releases
- NPM publishing
- Monorepo support
Installation
pnpm add -D @lobehub/semantic-release-config semantic-releaseUsage
Standard Project
Create release.config.mjs in your project root:
import config from '@lobehub/semantic-release-config';
export default config;Monorepo
import config from '@lobehub/semantic-release-config/monorepo';
export default config;Changelog Options
@lobehub/semantic-release-config/changelog exports the changelog formatting options (addBackToTop, showAuthor, scopeDisplayName, etc.), not a release config:
import changelog from '@lobehub/semantic-release-config/changelog';Exports
| Export | Description |
| -------------------------------------------- | ---------------------------- |
| @lobehub/semantic-release-config | Standard release config |
| @lobehub/semantic-release-config/monorepo | Monorepo release config |
| @lobehub/semantic-release-config/changelog | Changelog formatting options |
GitHub Actions
name: Release
on:
push:
branches: [master, main]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm semantic-releaseExtending
import config, { options } from '@lobehub/semantic-release-config';
export default {
...config,
branches: ['main', 'next'],
};Requirements
- Node.js >= 18
- semantic-release >= 21.0.0
License
MIT © LobeHub
