mirror of
https://github.com/imxv/Pretty-mermaid-skills.git
synced 2026-09-14 20:26:57 +08:00
98f91d5b88
* feat: add CI community docs and theme gallery * fix: address repository review feedback * docs: clarify gallery verification output
1.2 KiB
1.2 KiB
Releasing Pretty Mermaid
This process is for maintainers publishing a version from the default branch. Do not create a release from a feature branch.
1. Prepare the version
- Confirm
package.jsoncontains the intended semantic version. - Move completed entries from
Unreleasedinto a dated section inCHANGELOG.md. - Confirm the release notes describe user-visible behavior, compatibility, and important fixes.
- Merge the release changes into
mainand wait for CI to pass.
2. Verify from main
git switch main
git pull --ff-only origin main
npm ci
npm test
npm run validate
npm run gallery
git diff --exit-code -- assets/theme_gallery
The working tree should remain clean after verification.
3. Tag and publish
For the first release:
git tag -a v1.0.0 -m "Pretty Mermaid v1.0.0"
git push origin v1.0.0
Pushing a v* tag starts the Release workflow. It reruns tests and documentation validation, then creates a GitHub Release with generated notes categorized by .github/release.yml.
If the workflow fails, fix the underlying problem on main, create a new version tag, and publish that tag. Do not move a public release tag after users may have fetched it.