This document outlines the process for releasing new versions of @space48/cloud-seed to npm.
Note: Versions prior to 4.1.2 were published to GitHub Packages. Starting with version 4.1.2, all versions are published to npm, as per the Space48 package publishing guidelines.
For regular releases to npm:
-
Update Version:
- Update the version in
package.jsonfollowing Semantic Versioning principles
- Update the version in
-
Create Pull Request:
- Create a pull request with these changes
- Ensure all tests pass and the PR is reviewed
-
Merge to Master:
- Once approved, merge the PR to the
masterbranch - This will automatically trigger the GitHub Actions workflow to:
- Build the package
- Run tests
- Publish to npm with the version from package.json
- Create a GitHub release
- Once approved, merge the PR to the
For beta releases:
-
Development Work:
- Make your changes in a feature branch or on the
developbranch
- Make your changes in a feature branch or on the
-
Beta Publishing Options:
- From develop branch: Pushing to the
developbranch automatically publishes a beta version with the format:x.y.z-beta.[commit-hash].[timestamp] - From pull requests to master: Opening a PR to
masterautomatically publishes a beta version with the format:x.y.z-beta.pr.[pr-number].[timestamp]
- From develop branch: Pushing to the
-
Using Beta Versions:
- Beta versions can be installed with:
npm install @space48/cloud-seed@[beta-version] - Beta versions are published with the
betatag, so you can also use:npm install @space48/cloud-seed@beta
- Beta versions can be installed with:
Follow Semantic Versioning for version numbers:
- Major version (
x.0.0): Breaking changes - Minor version (
0.x.0): New features, backward compatible - Patch version (
0.0.x): Bug fixes, backward compatible