Follow these steps to publish a new version of @proddata/node-cratedb:
Update the version in your package.json. You can use the npm version command:
npm version patch # or "minor" / "major" as appropriateThis command updates the version number, commits the change, and creates a new Git tag.
Ensure your code passes all quality checks and compiles correctly by running the CI script:
npm run ciThe ci script should run: • Prettier (in check mode) • ESLint • Vitest tests • The build (using tsc)
If not already committed, add your changes:
git add .
git commit -m "Prepare release vX.Y.Z"Then push your changes and tags to GitHub:
git push && git push --tags- Publish to npm
Publish the new version to npm:
npm publish --access publicMake sure you are logged into your npm account (npm login) and that your package is configured to be public (if using a scoped package).
- Verify the Release
Confirm that the new version is available on npm:
npm info @proddata/node-cratedbYour package is now published and available for installation!
Happy coding, and thanks for using @proddata/node-cratedb!