docs: add version management section to README

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Du Wenbo
2026-04-06 09:09:00 +08:00
parent 21c0cf8b15
commit 240975b2c0

View File

@@ -115,6 +115,28 @@ docker run -p 80:80 ems-frontend-prod
---
## Version Management
```bash
# List all versions
git tag -l
# Download a specific version
git checkout v1.1.0
# Download as zip
curl -o template-v1.1.0.zip \
"http://100.69.143.96:3300/tianpu/ems-frontend-template/archive/v1.1.0.zip"
# Go back to latest
git checkout master
```
When releasing: update `VERSIONS.json` + `package.json` version, then tag and push.
See [ems-core README](http://100.69.143.96:3300/tianpu/ems-core) for the full version management guide.
---
## Notes
- Not all pages are needed for every customer -- remove unused page imports from `App.tsx`