mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-08 08:57:22 +08:00
1.6 KiB
1.6 KiB
name, description
| name | description |
|---|---|
| cf-temp-mail-version-upgrade | Upgrade the project version number. Use when the user asks to bump the version, upgrade the version, or prepare a new release version. Supports major, minor, and patch upgrades. |
Version Upgrade
Upgrade the version number of the cloudflare_temp_email project.
Files to modify
frontend/package.json—versionfieldworker/package.json—versionfieldworker/src/constants.ts—VERSIONconstant (format:VERSION: 'v' + '1.4.0')pages/package.json—versionfieldvitepress-docs/package.json—versionfieldCHANGELOG.md— add new version placeholderCHANGELOG_EN.md— add new version placeholder (English)
Upgrade workflow
- Read
frontend/package.jsonto get the current version. - Compute the new version based on the upgrade type:
- major: 1.3.0 → 2.0.0
- minor: 1.3.0 → 1.4.0
- patch: 1.3.0 → 1.3.1
- Update the
versionfield in everypackage.jsonlisted above. - Update the
VERSIONconstant inworker/src/constants.ts. - Insert a new version placeholder at the top of
CHANGELOG.md. - Insert a new version placeholder at the top of
CHANGELOG_EN.md.
CHANGELOG format
In CHANGELOG.md, insert before the existing ## v{OLD_VERSION}(main) line (i.e. right after the closing </p> of the language-switch link):
## v{VERSION}(main)
### Features
### Bug Fixes
### Improvements
CHANGELOG_EN.md uses the same format.
Commit message format
feat: upgrade version to v{VERSION}
- Update version number to {VERSION} in all package.json files
- Add v{VERSION} placeholder in CHANGELOG.md