Skip to content

build: semantic-releaseのreleaseRulesを明示化 - #5

Merged
sgash708 merged 1 commit into
mainfrom
build/release-rules
Aug 8, 2026
Merged

build: semantic-releaseのreleaseRulesを明示化#5
sgash708 merged 1 commit into
mainfrom
build/release-rules

Conversation

@sgash708

@sgash708 sgash708 commented Aug 8, 2026

Copy link
Copy Markdown
Owner

概要

`~/asparagus/oralis-front` の release-drafter 運用(ラベルでmajor/minor/patchを明示)を参考に、chromagicは conventional commits ベースの semantic-release を維持しつつ `releaseRules` を明示化する。

変更内容

`.releaserc.json` の `@semantic-release/commit-analyzer` に `releaseRules` を追加:

コミット種別 挙動
`feat:` minor(デフォルトのまま)
`fix:` patch(デフォルトのまま)
`fix(security):` / `security:` minor に昇格(セキュリティ修正を目立たせる)
`perf:` / `revert:` patch(デフォルトのまま)
`refactor:` 明示的に patch リリース対象(Angular presetのデフォルトはno-release)
`chore(deps):` 明示的に patch リリース対象(依存更新を都度リリースしたい場合)
`build:` / `ci:` / `docs:` / `style:` / `test:` / `chore:`(scopeなし) 引き続きリリース対象外

これにより、今回の一連の作業(セキュリティ強化コミットをどのバージョンに割り当てるべきか)のような判断ブレを今後減らす。

動作確認

  • `.releaserc.json` JSON構文チェック OK
  • `npx semantic-release --dry-run --no-ci` でプラグインロード成功を確認(non-mainブランチのため実際のリリース判定はスキップされる旨のメッセージのみ)

🤖 Generated with Claude Code

oralis-front(release-drafter)の運用を参考に、conventional commits
ベースは維持しつつバージョン判定を明示化する。

- fix(security): / security: → minor に昇格(セキュリティ修正を目立たせる)
- refactor: → 明示的に patch リリース対象に(Angular presetのデフォルトはno-release)
- chore(deps): → 明示的に patch リリース対象に(依存更新を都度リリースしたい場合)
- build:/ci:/docs:/style:/test:/chore(no scope): → 引き続きリリース対象外

これにより「このコミットはminorにすべきでは」といった判断ブレを減らす。
@sgash708
sgash708 merged commit 1f837de into main Aug 8, 2026
2 checks passed
@sgash708
sgash708 deleted the build/release-rules branch August 8, 2026 04:57
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant