Semantic Versioning

aj-geddes/useful-ai-prompts/skills/semantic-versioning

作者 aj-geddes3f5182cfd739無授權條款355 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫7 個月前更新

Implement semantic versioning (SemVer) with automated release management. Use conventional commits, semantic-release, and version bumping strategies.

AI 產生的概覽

使用約定式提交與 semantic-release 建立語意化版本與自動化發佈管理。

功能
此技能建立語意化版本實務,讓 MAJOR.MINOR.PATCH 版號與發佈重要性保持一致。內容涵蓋約定式提交格式、semantic-release 設定、版號遞增策略、變更記錄產生,以及破壞性變更追蹤。技能附有參考指南、一支驗證指令碼和一個 API 範本。
適用情境
適用於發佈套件或函式庫、為 API 做版本管理、自動化版號遞增、產生發佈說明或變更記錄,以及追蹤破壞性變更與相依性。
執行需求
需要 Node.js 工具鏈(例如 semantic-release 與 conventional-changelog-cli)以及 git 版本庫;技能附有可執行指令碼與參考文件。

Semantic Versioning

Table of Contents

Overview

Establish semantic versioning practices to maintain consistent version numbering aligned with release significance, enabling automated version management and release notes generation.

When to Use

  • Package and library releases
  • API versioning
  • Version bumping automation
  • Release note generation
  • Breaking change tracking
  • Dependency management
  • Changelog management

Quick Start

Minimal working example:

yaml
# package.json{  "name": "my-awesome-package",  "version": "1.2.3",  "description": "An awesome package",  "main": "dist/index.js",  "repository": { "type": "git", "url": "https://github.com/org/repo.git" },  "scripts": { "release": "semantic-release" },  "devDependencies":    {      "semantic-release": "^21.0.0",      "@semantic-release/changelog": "^6.0.0",      "@semantic-release/git": "^10.0.0",      "@semantic-release/github": "^9.0.0",      "conventional-changelog-cli": "^3.0.0",    },}

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Semantic Versioning Configuration [blocked]Semantic Versioning Configuration
Conventional Commits Format [blocked]Conventional Commits Format
Semantic Release Configuration [blocked]Semantic Release Configuration
Version Bumping Script [blocked]Version Bumping Script
Changelog Generation [blocked]Changelog Generation

Best Practices

✅ DO

  • Follow strict MAJOR.MINOR.PATCH format
  • Use conventional commits
  • Automate version bumping
  • Generate changelogs automatically
  • Tag releases in git
  • Document breaking changes
  • Use prerelease versions for testing

❌ DON'T

  • Manually bump versions inconsistently
  • Skip breaking change documentation
  • Use arbitrary version numbering
  • Mix features in patch releases

來源與署名

來源:aj-geddes/useful-ai-prompts位於skills/semantic-versioning提交3f5182c

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架