This document describes how to release a new version of streamock.
-
Make sure your local main branch is up to date:
git checkout main git pull origin main
-
Update version using npm (choose one):
npm version patch # for bug fixes (1.0.0 -> 1.0.1) npm version minor # for new features (1.0.0 -> 1.1.0) npm version major # for breaking changes (1.0.0 -> 2.0.0)
-
Push changes and tags to GitHub:
git push && git push --tags
-
The GitHub Action will automatically:
- Run tests (if any)
- Build the package (if needed)
- Publish to NPM
-
Verify the new version is available on:
patch
(1.0.0 -> 1.0.1): Bug fixes and minor changesminor
(1.0.0 -> 1.1.0): New features (backwards compatible)major
(1.0.0 -> 2.0.0): Breaking changes
If the automatic publish fails:
- Check the GitHub Actions logs
- Ensure NPM_TOKEN is correctly set in GitHub Secrets
- Verify you have the correct permissions on NPM