Readers/Web/Team/Releasing libraries

Register on npm with 2FA
Wikimedia members are listed on https://www.npmjs.com/settings/wikimedia/members and 2FA is required for publishing.

Prepare the versioning and make a changelog
Create a new pull request which modifies the package.json version file number (see https://semver.org/) and run:

… for trivial changes, or for bigger releases:

… or if it contains breaking changes then:

Commit the modifications to package.json and package.json

Generate change log if CHANGELOG.md exists
A changelog (example) can be maintained by modifying CHANGELOG.md with the result of

Running tests
Always check tests are passing before releasing. If using Github pull requests with CI this should have been done automatically.

Create pull request
Create a pull request get someone to approve it, and merge.

Releasing the code
Once the code is merged you should be promoted for a 2FA token