Before publishing to NPM, please ensure the following:
- Update version in package.json
- Run tests:
npm test - Update CHANGELOG.md with latest changes
Perform a dry run to verify what will be published:
npm publish --dry-runThis will list all files that would be published without actually publishing.
If everything looks good, publish to NPM:
# Login to NPM if not already logged in
npm login
# Publish the package
npm publishAfter successful publication:
- Create a Git tag:
git tag -a v2.0.0 -m "Version 2.0.0 - STDIO only" - Push the tag:
git push origin v2.0.0 - Create a release on GitHub with notes from CHANGELOG.md
If you encounter any issues during publishing:
- Verify you have the correct npm permissions
- Check that all required files are included in the
filesarray in package.json - Ensure all dependencies are correctly listed