Skip to main content

Node.js

For publishing Node.js libraries, we use NPM as our package manager and GitHub Actions to publish the libraries.

Publishing

All libraries are published under the hmcts scope, make sure your library name starts with @hmcts/my-lib, see nodejs-logging

  1. Go to your repository within GitHub
  2. Select the Actions tab at the top
  3. Scroll down to the ‘Workflows created by HM Courts & Tribunals Service’ section and select ‘Publish Node.js Library’, press the ‘Set up this workflow’ button
  4. On the far right select ‘Start commit’
  5. Update the pull request name, then select ‘Commit new file’
  6. Pull your feature branch
  7. Create a release in GitHub
  8. Check the workflow build in the Actions tab
  9. Check the library was released to https://npmjs.com

Further information on NPM can be found at https://docs.npmjs.com/.

This page was last reviewed on 15 August 2024. It needs to be reviewed again on 15 February 2025 by the page owner platops-build-notices .
This page was set to be reviewed before 15 February 2025 by the page owner platops-build-notices. This might mean the content is out of date.