Prerequisites
Feature Summary
The publish-fern-docs workflow currently triggers on docs/v* tags, which requires a separate manual tag push for docs publishing. Release tags (v1.2.0) already represent documentation milestones and should drive docs publishing automatically.
Problem/Use Case
- Docs publishing requires a separate
docs/v* tag push — easy to forget, out of sync with releases
- No automatic version registration — new versions must be manually added to
fern/docs.yml
- No version pruning — old versions accumulate indefinitely
Proposed Solution
- Trigger on release tags (
v[0-9]*.[0-9]*.[0-9]*) instead of docs/v*
- On release tag push, auto-generate
fern/versions/vX.Y.Z.yml and add to docs.yml
- Prune older versions to keep only the 3 most recent (plus Latest)
- Pre-release tags (e.g.
v1.6.0-rc1) trigger publish but skip version registration
- Commit version changes back to main
Adapted from NVIDIA/NVSentinel#1292.
Success Criteria
Prerequisites
Feature Summary
The publish-fern-docs workflow currently triggers on
docs/v*tags, which requires a separate manual tag push for docs publishing. Release tags (v1.2.0) already represent documentation milestones and should drive docs publishing automatically.Problem/Use Case
docs/v*tag push — easy to forget, out of sync with releasesfern/docs.ymlProposed Solution
v[0-9]*.[0-9]*.[0-9]*) instead ofdocs/v*fern/versions/vX.Y.Z.ymland add todocs.ymlv1.6.0-rc1) trigger publish but skip version registrationAdapted from NVIDIA/NVSentinel#1292.
Success Criteria