publish-semver
Set up semantic or calendar versioning and package publishing across supported ecosystems. Use when configuring release automation or changelogs.
- License 许可
- Apache-2.0
- 所属仓库
- r3dlex/skills
- 最近更新
- 2026-10-29
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- publish-semver
- description
- Set up semantic or calendar versioning and package publishing across supported ecosystems. Use when configuring release automation or changelogs.
02 资源文件 14
- 参考文档csharp-nuget.md3.2 KB
- 参考文档dart-pub.md2.8 KB
- 参考文档elixir-burrito.md2.6 KB
- 参考文档elixir-hex.md2.5 KB
- 参考文档erlang-hex.md3.0 KB
- 参考文档floating-tags.md2.0 KB
- 参考文档host-ado.md6.6 KB
- 参考文档host-github.md5.1 KB
- 参考文档java-maven.md3.9 KB
- 参考文档js-npm.md2.3 KB
- 参考文档kotlin-gradle.md4.2 KB
- 参考文档python-pypi.md2.5 KB
- 参考文档release-files.md2.6 KB
- 参考文档rust-crates.md2.6 KB
03 SKILL.md 正文
publish-semver
Version Model
Every push to main creates a pre-release. A Release-Please PR merge or semantic-release stable tag promotes it to stable.
0.1.3-pre.1 ← push to main
0.1.3-pre.2 ← push to main
0.1.3 ← stable release
Commit type controls the next stable bump:
fix:→ patch (0.1.2 → 0.1.3)feat:→ minor (0.1.2 → 0.2.0)feat!:/BREAKING CHANGE:→ major (0.1.2 → 1.0.0)
Step 1: Pick Your Host
| Host | CI system | Private registry |
|---|---|---|
| GitHub | GitHub Actions | GitHub Packages |
| Azure DevOps | Azure Pipelines | Azure Artifacts |
Read the host file first. It contains the full CI job scaffold, auth patterns, visibility checks, and floating tag steps.
- GitHub → host-github.md
- Azure DevOps → host-ado.md
Step 2: Pick Your Strategy
| Strategy | How it works | Best for |
|---|---|---|
| Release-Please | Accumulates commits into a release PR. Stable publish on PR merge. | Teams that want a review gate. |
| semantic-release | Tags and publishes on every qualifying push to main. |
Fully automated pipelines. |
Both produce pre-releases on every push to main.
Step 3: Pick Your Ecosystem
| Ecosystem | File |
|---|---|
| JS/TS + npm | js-npm.md |
| Python + PyPI | python-pypi.md |
| Elixir + Hex | elixir-hex.md |
| Elixir + Burrito binaries | elixir-burrito.md |
| Rust + crates.io | rust-crates.md |
| C# + NuGet | csharp-nuget.md |
| Dart / Flutter + pub.dev | dart-pub.md |
| Java + Maven Central | java-maven.md |
| Kotlin + Gradle + Maven Central | kotlin-gradle.md |
| Erlang + Hex | erlang-hex.md |
Step 4: Compose the Workflow
Ecosystem files provide publish commands and version bump logic only. The host file provides the full CI job scaffold. Combine them:
- Copy the job scaffold from the host file.
- Replace the
# ECOSYSTEM PUBLISH STEPSplaceholder with commands from the ecosystem file. - Add required secrets from the ecosystem file to your CI secret store.
Supporting References
| Need | File |
|---|---|
| Floating major version tags | floating-tags.md |
| CHANGELOG and release file conventions | release-files.md |
04 同仓库更多 Skills
skill
Fixture.
stable-skill
Fixture stable-skill.
experimental-skill
Fixture experimental-skill.
deprecated-skill
Fixture deprecated-skill.
karpathy-guidelines
Apply think-before-coding, simplicity, surgical-change, and goal-driven engineering rules. Use when planning, implementing, or reviewing code.
karpathy-guidelines
Apply think-before-coding, simplicity, surgical-change, and goal-driven engineering rules. Use when planning, implementing, or reviewing code.