Skip to content

Commit

Permalink
Number package.json with correct version
Browse files Browse the repository at this point in the history
This increases the version of the package.json file to match
the current release and git tag.
  • Loading branch information
teneightfive committed Aug 21, 2020
1 parent 177e796 commit e218c7e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
> **DRAFT** - this framework is still in a draft state and may be subject to change
# Book a secure move frameworks

YAML defintions of the [Book a secure move](https://github.com/ministryofjustice/hmpps-book-secure-move) service frameworks.

The repository contains the following frameworks:

- [Person Escort Record (PER)](./frameworks/person-escort-record)

## Creating a new release

1. Checkout and pull the latest version of master
1. Increase the version property using the [`npm version`](https://docs.npmjs.com/cli/version) command. Follow [semantic versioning](https://semver.org/) for version numbers. This will create the git version commit and tag associated to the new version as well.
1. Increase the version number in the package.json `name` property to match the new version. This is to support the method needed to cater for multiple versions of the framework in the [frontend project](https://github.com/ministryofjustice/hmpps-book-secure-move-frontend/blob/d374ac9e46f0e258ec2a9fa1bbc9a7df2fb81cc4/package.json#L70-L71).
1. Push the commit to the remote server (`git push`)
1. Push tags to remote (`git push --tags`)
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hmpps-book-secure-move-frameworks",
"version": "0.1.0",
"name": "@hmpps-book-secure-move-frameworks/1.1.0",
"version": "1.1.0",
"description": "YAML definitions for the frameworks used by the Book a secure move service",
"repository": {
"type": "git",
Expand Down

0 comments on commit e218c7e

Please sign in to comment.