Skip to content

Latest commit

 

History

History
82 lines (55 loc) · 1.65 KB

release_process.md

File metadata and controls

82 lines (55 loc) · 1.65 KB

Release Process (v1.0.0)

Version

The [semantic version] is bumped according to releases, new features, and breaking changes.

*The main branch uses the semantic version of the last released version.

Process

Note: this guide assumes that the your git torrust remote is like this:

git remote show torrust
* remote torrust
  Fetch URL: [email protected]:torrust/torrust-index-api-lib.git
  Push  URL: [email protected]:torrust/torrust-index-api-lib.git
...

1. The main branch is ready for a release

npm install && npm run build

There should be no errors installing or building the library.

2. Change the version in the package.json file

Change the version in the package.json file. For example 3.0.0.

NOTICE: The v prefix is not needed.

Install and build to double-check:

npm install && npm run build

Commit the changes:

git add -A
git commit -m "feat: release [semantic version]"

3. Create a new tag an push to the remote

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.0

4. Manually publish the NPM package

npm publish

IMPORTANT:

  • 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.

4. Check the package is published

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-api-lib.