Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.04 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.04 KB

asl-constants

Provides a home for any commonly used values shared across the ASL project.

Usage

Authenticate with GitHub packages

Install the package:

npm install @ukhomeoffice/asl-constants --save-prod

Import as necessary:

const { establishmentCountries, establishmentStatuses } = require('@ukhomeoffice/asl-constants');
console.log(establishmentCountries);

result:

[
  'england',
  'scotland',
  'wales',
  'ni'
]

Publishing

This is automatically published to the GitHub packages npm repository using GitHub Actions.

When opening a pull request add a label major, minor or patch (or skip-release) and the version field in package.json will be updated by the pipeline using npm version.

It is published once the pull request is merged if there is no skip-release label on the pull request, the SHA is also tagged with the SemVer value at that point.