Release Process
Versioning
- MAJOR — Breaking changes
- MINOR — New features (backward compatible)
- PATCH — Bug fixes (backward compatible)
Version Update
Use the automated version scripts:
npm run version:bump:patch # 0.0.2 → 0.0.3
npm run version:bump:minor # 0.0.2 → 0.1.0
npm run version:bump:major # 0.0.2 → 1.0.0
These scripts update package.json and version references in README.md.
Release Checklist
-
Update version:
npm run version:bump:patch # or minor/major -
Run tests:
npm run lintnpm run compilenpm test -
Commit and push:
git add -Agit commit -m "chore: bump version to X.Y.Z"git push -
Create GitHub Release (triggers publishing):
Option A: GitHub CLI (recommended):
gh release create v0.0.3 *.vsix --title "Release v0.0.3" --generate-notesOption B: GitHub Web UI:
- Go to GitHub → Releases → "Create a new release"
- Create tag
vX.Y.Z(e.g.,v0.0.3) - Upload the
.vsixfile - Add release notes
- Publish release
⚠️ Important: Publishing the release triggers the CI workflow to publish to VS Code Marketplace
Pre-release Testing
Test locally before releasing:
npm run package:production # Build optimized package
code --install-extension prompt-registry-*.vsix
Test on: macOS, Linux, Windows, VS Code Stable + Insiders.
PR Process
- Update from main:
git fetch upstream && git rebase upstream/main - Run checks:
npm run lint && npm run compile && npm test - Submit PR with description
- Address review feedback
- Merge after approval