From e218c7e64ad47db19d776da557d1a509445f9ff1 Mon Sep 17 00:00:00 2001 From: Dom Smith Date: Fri, 21 Aug 2020 11:18:24 +0200 Subject: [PATCH] Number package.json with correct version This increases the version of the package.json file to match the current release and git tag. --- README.md | 10 ++++++++-- package-lock.json | 4 ++-- package.json | 4 ++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9c7336a..19f0802 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -> **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. @@ -7,3 +5,11 @@ YAML defintions of the [Book a secure move](https://github.com/ministryofjustice 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`) diff --git a/package-lock.json b/package-lock.json index 0adf021..f9b48af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "hmpps-book-secure-move-frameworks", - "version": "0.1.0", + "name": "@hmpps-book-secure-move-frameworks/1.1.0", + "version": "1.1.0", "lockfileVersion": 1 } diff --git a/package.json b/package.json index 35f4d78..b9f090b 100644 --- a/package.json +++ b/package.json @@ -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",