release-ultrainit
暂无简介
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 8
- Forks
- 1
03 SKILL.md 正文
Before You Start
.github/workflows/release.yml— the release pipeline (validates tag, builds bundle, publishes)bundle.sh— what gets bundled and the__EOF_LIB_<name>__delimiter strategyMakefile—bundleandtest-alltargetsCLAUDE.mdsection on Security-Critical Areas —bundle.shships broken releases if wrong
Steps
1. Determine the next version
git tag --sort=-v:refname | head -5
Decide the next semver: v<MAJOR>.<MINOR>.<PATCH>. Pre-release format: v1.2.3-beta.1 (the .digit after the label is required — v1.2.3-beta alone fails release.yml's regex check).
2. Verify the branch is clean and on main
git status
git log --oneline main..HEAD
All changes must be merged to main before tagging. Releases are always cut from main.
3. Run the full test suite
make check # syntax + schema validation
make test-all # full bats suite inside Docker
Do not proceed if any test fails. Integration tests: check raw output — CI shows green even when they fail.
4. Check for bundle delimiter conflicts
grep '__EOF_LIB_' lib/*.sh prompts/*.md scripts/*.sh
If any file contains a line matching __EOF_LIB_<name>__, the heredoc in bundle.sh terminates early, shipping a broken bundle silently.
5. Build and verify the bundle
mkdir -p dist
bash bundle.sh > dist/ultrainit.sh
chmod +x dist/ultrainit.sh
bash -n dist/ultrainit.sh && echo "syntax OK"
du -sh dist/ultrainit.sh
If bash -n fails, bundle.sh has a syntax error or delimiter conflict. Do not tag.
6. STOP — confirm the version with the user
Show the user:
- The version number you plan to tag
git log --oneline $(git tag --sort=-v:refname | head -1)..HEAD(commits since last tag)- The bundle size from step 5
Wait for explicit approval before proceeding. The developer answers explicitly state: never release new tags without consulting the user first.
7. Create and push the tag
git tag v<VERSION>
git push origin v<VERSION>
This triggers .github/workflows/release.yml automatically.
8. Monitor the release workflow
gh run list --workflow=release.yml
gh run watch # follow the live output
9. Verify the published release
gh release view v<VERSION>
Verify dist/ultrainit.sh is attached as a release asset. Check the download URL in the release body matches the curl-pipe-bash install command in README.md.
Verify
bash -n dist/ultrainit.sh # bundle syntax
gh release view v<VERSION> --json assets --jq '.assets[].name' # asset attached
Common Mistakes
-
Tagging without consulting the user — the project rule is explicit. Always show the planned tag and commit range before tagging.
-
v1.2.3-betawithout.digit—release.ymlvalidates against^v[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?$. The suffix must bebeta.1notbeta. -
Skipping
make test-allbefore tagging —release.ymlrunsbash -nbut does NOT run the bats test suite. A broken release can ship even with failing tests if you skip step 3. -
bundle.shstdout contamination — anyechoorlog_*call added tobundle.shcorrupts the bundle output becauserelease.ymldoesbash bundle.sh > dist/ultrainit.sh.
04 同仓库更多 Skills
valid-skill
Use when building or modifying API endpoints in src/api/. Covers route creation, middleware wiring, and request validation. Do NOT use for frontend components or static pages.
invalid-skill-no-desc
暂无简介
invalid-skill-angle-brackets
Use when working with <component> templates. Do NOT use for <other> things.
validate-generated-artifact
暂无简介
tune-synthesis-context
暂无简介
run-tests
暂无简介