Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.68 KB

RELEASE.md

File metadata and controls

30 lines (21 loc) · 1.68 KB

Release Process

This document describes the process for creating a release and publishing a new version of this module.

Prerequisites

Create a Release

  1. Bump the version number in package.json. Use Semantic Versioning.
  2. Run npm install to regenerate the package-lock.json.
  3. Run npm run build. It's important to do this after bumping the version.
  4. Commit and Git tag these changes. Use v followed by the version number, for example: git tag -a v0.8.2.
  5. Push the changes to the GitHub repository, including the tag (git push --tags). Open and merge PRs as appropriate.
  6. Once the changes are merged to master, create a new Release on GitHub and choose the tag you just created.
  7. Publishing a release triggers the GitHub Action Publish to npm which will release the new npm package automatically. Ensure the Action completes successfully.

New updates can be viewed at the npm package page: @sophos-factory/api-client

Publishing a Pre-Release

  1. Do steps 1-4 above.

  2. Ensure you have the correct npm credentials set up locally.

  3. Publish the pre-release using npm publish and ensure you pass the pre-release --tag. For example:

    npm publish --tag pre-release --access public