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
- Go to your repository within GitHub
- Select the Actions tab at the top
- 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
- On the far right select ‘Start commit’
- Update the pull request name, then select ‘Commit new file’
- Pull your feature branch
- Create a release in GitHub
- Check the workflow build in the Actions tab
- 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.