Bower | Npm (semver) | version |
---|---|---|
bower version <X.Y.Z> |
npm version <X.Y.Z> |
X.Y.Z |
bower version patch |
npm version patch |
0.0.X |
bower version minor |
npm version minor |
0.X.0 |
bower version major |
npm version major |
X.0.0 |
This will also create a version commit and tag, and fail if the repo is not clean.
NOTES:
-
Given a version number MAJOR.MINOR.PATCH, increment the:
- MAJOR version when you make incompatible API changes
- MINOR version when you add functionality in a backwards-compatible manner
- PATCH version when you make backwards-compatible bug fixes.
-
Version 1.0.0 defines the public API. The way in which the version number is incremented after this release is dependent on this public API and how it changes.
-
A pre-release version MAY be denoted by appending a hyphen and a series of dot separated identifiers immediately following the patch version. A pre-release version indicates that the version is unstable and might not satisfy the intended compatibility requirements as denoted by its associated normal version.
- Bower Issue a version command, then public with
git push --tags
- Node Issue a version command, then
npm publish
- Bower and Node
- Manually update version in
bower.json
andpackage.json
files and commit the changes - Tag the repo
git tag -a vX.Y.Z -m 'Release version X.Y.Z'
- Then
git push --tags
andnpm publish
- Manually update version in