Documentation and release automation
Winenv derives versions, release notes, assets, and the documentation site from commit history. Routine maintenance does not require editing version numbers, copying changelogs, or uploading site files.
Release pipeline
Section titled “Release pipeline”After a push or merge to main:
- the Release workflow validates profiles, PowerShell syntax, behavior, localization, and documentation;
- semantic-release analyzes Conventional Commits;
- a feature or fix updates
VERSIONand the rootCHANGELOG.mdautomatically; - the workflow creates the version commit, Git tag, GitHub Release, ZIP, and SHA-256 asset;
- a smoke test downloads and installs the newly published release;
- Release records its final commit SHA, including any generated release commit; after it succeeds, Pages retrieves that record and builds exactly that revision.
Pages waits for Release so that the generated version and release notes appear in the same site deployment. It does not fetch a newer, unrelated main commit while deploying an earlier run. Non-release commits such as docs: still pass documentation validation and update the site, but skip native runtime tests when only recognized documentation paths changed. Unknown paths and workflow changes keep the full runtime checks.
Commit types
Section titled “Commit types”fix: repair installer path # patch releasefeat: add a capability # minor releasefeat!: change an incompatible schema # major releasedocs: clarify profile behavior # no release; deploy docschore: update maintenance config # no releaseDescribe the change accurately and do not edit VERSION by hand. See the contribution guide for the complete workflow.
Changelog synchronization
Section titled “Changelog synchronization”The root CHANGELOG.md is the single source. pnpm docs:build first runs scripts/sync-docs-changelog.mjs, which creates both English and Chinese documentation wrappers around the same release history before Astro Starlight builds the site.
Generated docs/src/content/docs/changelog.md and docs/src/content/docs/zh/changelog.md files are ignored by Git to avoid checked-in copies that require manual synchronization.
Local preview
Section titled “Local preview”Use the Node.js version in .node-version (or a compatible newer version) and pnpm pinned by packageManager. The cross-platform development setup covers bootstrapping:
pnpm install --frozen-lockfilepnpm docs:devBefore submitting documentation changes:
pnpm docs:buildpnpm docs:previewContent lives under docs/src/content/docs/. Site configuration is docs/astro.config.mjs; the small browser preference script is docs/public/locale.js. Starlight supplies navigation, translated UI, Pagefind search, and the default layout. See documentation maintenance for content and browser checks.
Manually redeploy the site
Section titled “Manually redeploy the site”Normally no action is required. If GitHub Pages has a transient failure, rerun it while the Release source artifact is available (retained for seven days), or manually dispatch Pages on main. A manual dispatch builds the exact selected commit at dispatch time, not a moving branch tip, and does not depend on locally generated files.
