The
[semantic version]is bumped according to releases, new features, and breaking changes.*The
mainbranch uses the semantic version of the last released version.
Note: this guide assumes that the your git torrust remote is like this:
git remote show torrust* remote torrust
Fetch URL: git@github.com:torrust/torrust-index-gui.git
Push URL: git@github.com:torrust/torrust-index-gui.git
...npm install && npm run lint && npm run buildThere should be no errors installing or building the library.
Change the version in the package.json file. For example 3.0.0.
You might need to update also the torrust dependencies:
- torrust-index-api-lib
- torrust-index-types-lib
npm update torrust-index-types-lib
npm update torrust-index-api-libNOTICE: The
vprefix is not needed.
Install and run linter and build to double-check:
npm install && npm run lint && npm run buildAt this point, you should check that the new version is working wit the Index, before creating the tag.
Commit the changes:
git add -A
git commit -m "feat: release [semantic version]"git tag v[semantic version]
git push torrust && git push torrust v[semantic version]For example:
git tag v3.0.0
git push torrust && git push torrust v3.0.0npm publishIMPORTANT:
- You will require to login.
- You have to have permission for publishing on the Torrust namespace.
If you get an error because you were not logged in, just retry the same command after the login.
You should receive an email when the package is published.
You can also check on the NPM registry: https://www.npmjs.com/package/torrust-index-gui.