YNU-620: Add a version switcher and lifecycle scripts #97
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


the new version switcher and the automation scripts to manage our release lifecycle.
What's new
package.jsonversion.The Scripts
npm run version:release <ver> <next>: Freezes current work as<ver>and bumps project to<next>. (Includes validation to prevent skipping versions).npm run version:remove <ver>: Safely deletes a specific old version (docs + sidebar + config).npm run version:reset <target>: "Factory Reset" — wipes all history and returns to a single-version state.How to Test (Simple Flow)
Release a test version:
# (Assuming you are currently on 0.5.x) npm run version:release 0.5.x 0.6.xResult:
docs/is now0.6.x. You'll see a newversioned_docs/version-0.5.xfolder.Verify UI:
Start the server (
npm run start). You should see0.5.xand0.6.xin the dropdown.Delete the test version:
Result: The
0.6.xfolder is gone, and you're back to just having 0.5.x docs.