Skill站外收录 @skilllib/skill-2117939930272414106
release
自动化完成 Hamr 启动器的版本发布流程,包括分析提交记录判断版本升级类型、检查并同步新增插件到 README 文档、更新 VERSION 文件、提交代码、打带 v 前缀的 Git 标签,并触发 GitHub Actions 自动构建发布及 AUR 包更新。
软件开发 AI 技能
Skills.MD
# Creating a Hamr Release
This skill helps you create releases for the Hamr launcher. It handles version bumping, git tagging, and pushing to trigger GitHub Actions.
## Release Process
### 1. Check Git Log for Changes Since Last Release
```bash
git log --oneline $(git describe --tags --abbrev=0)..HEAD
```
Review commit messages to:
- Determine version bump type (patch vs minor)
- **Check if any new plugins were added** (look for commits mentioning new plugins in `plugins/` directory)
### 2. Check for New Plugins and Update README
If a new plugin was added, verify it is documented in `README.md`:
1. List all plugin directories:
```bash
ls -d plugins/*/
```
2. Check the "Built-in Plugins" table in `README.md` (around line 66-96)
3. If a new plugin is missing from the table, add it in alphabetical order:
```markdown
| `plugin-name` | Description of what the plugin does |
```
4. Read the plugin's `manifest.json` to get the correct name and description:
```bash
cat plugins/<plugin-name>/manifest.json
```
The Built-in Plugins table format:
```markdown
| Plugin | Description |
|--------|-------------|
| `apps` | App drawer with categories (like rofi/dmenu) |
| `new-plugin` | Description from manifest.json |
```
### 3. Check for Uncommitted Changes
```bash
git status --porcelain
```
Analyze changes to determine version bump type:
- **Patch** (e.g., `0.1.1` -> `0.1.2`): Bug fixes, minor updates, no new features
- **Minor** (e.g., `0.1.1` -> `0.2.0`): New features or significant changes (including new plugins)
### 4. Get Current Version
Read the current version from VERSION file:
```bash
cat VERSION
```
### 5. Update VERSION File
Edit the `VERSION` file with the new version:
```bash
# Example: Update from 0.1.1 to 0.2.0
echo "0.2.0" > VERSION
```
The VERSION file is the single source of truth. GitHub Actions will automatically update PKGBUILD when releasing.
### 6. Commit and Push
```bash
git add -A && git commit -m "chore: bump version to X.Y.Z" && git push
```
### 7. Create and Push Tag
```bash
git tag vX.Y.Z && git push origin vX.Y.Z
```
The tag format is `vX.Y.Z` (with `v` prefix).
## What Happens After Release
GitHub Actions will automatically:
1. Update the AUR package
2. Create a GitHub Release with sorted release notes (by conventional commit type)
## Manual AUR Publish
If GitHub Actions fails or manual publish is needed:
```bash
./aur-publish.sh
```
## Version Bump Decision Guide
| Change Type | Version Bump | Example |
|-------------|--------------|---------|
| Bug fixes only | Patch | `0.1.1` -> `0.1.2` |
| Minor improvements | Patch | `0.1.1` -> `0.1.2` |
| New plugin | Minor | `0.1.1` -> `0.2.0` |
| New feature | Minor | `0.1.1` -> `0.2.0` |
| Breaking changes | Minor | `0.1.1` -> `0.2.0` |
| Major rewrite | Major | `0.1.1` -> `1.0.0` |
## Complete Release Commands
```bash
# 1. Check git log for changes since last release
git log --oneline $(git describe --tags --abbrev=0)..HEAD
# 2. List plugins and compare with README.md Built-in Plugins table
ls -d plugins/*/
# 3. If new plugin found, read its manifest and add to README.md
cat plugins/<new-plugin>/manifest.json
# Then edit README.md to add the plugin in alphabetical order
# 4. Check status
git status --porcelain
# 5. Update VERSION file
echo "X.Y.Z" > VERSION
# 6. Commit and push
git add -A && git commit -m "chore: bump version to X.Y.Z" && git push
# 7. Tag and push
git tag vX.Y.Z && git push origin vX.Y.Z
```
## Checklist
Before releasing:
- [ ] Git log reviewed for new plugins
- [ ] README.md updated with any new plugins (in alphabetical order in Built-in Plugins table)
- [ ] All changes committed
- [ ] Tests passing (if applicable)
- [ ] VERSION file updated
After releasing:
- [ ] GitHub Actions workflow completed
- [ ] AUR package updated
- [ ] GitHub Release created
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「release」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次