Prompt file imported from scarecr0w12/CGN-Bot (
.windsurf/workflows/deploy-release.md). Copyright stays with the author.
Deploy Release
Prerequisites
- All changes committed and pushed
- Tests passing
- CHANGELOG.md updated
Steps
- Check current version: // turbo
grep '"version"' /root/bot/package.json
- Review recent commits for changelog: // turbo
git log --oneline -20
-
Update version in package.json (follow semver):
- MAJOR: Breaking changes
- MINOR: New features, backward compatible
- PATCH: Bug fixes
-
Update CHANGELOG.md with release notes: // turbo
head -50 /root/bot/CHANGELOG.md
- Commit version bump:
git add package.json CHANGELOG.md
git commit -m "chore: bump version to X.Y.Z"
- Create and push release tag:
# Replace X.Y.Z with actual version
git tag -a vX.Y.Z -m "Release vX.Y.Z"
git push origin main --tags
- The GitHub Actions workflow will automatically: // turbo
cat /root/bot/.github/workflows/release.yml
- Create GitHub Release
- Generate changelog from commits
- Attach release assets
-
Verify release on GitHub:
-
Deploy to production (if applicable):
# On production server
git pull origin main
docker compose up -d --build bot
Rollback
If issues occur after release:
# Revert to previous version
git checkout vPREVIOUS.VERSION
docker compose up -d --build bot