opened
hannalaakso
username_0
We had a query from a user who was unsure how to update their version of govuk-frontend to the latest version.

Our docs show [how to install govuk-frontend for the first time](https://github.com/alphagov/govuk-frontend/blob/master/docs/installation/installing-with-npm.md#installation) but not how to update to a new version via npm.

Suggested steps we could add to docs:

1. Check [release notes](https://github.com/alphagov/govuk-frontend/releases). 
 <img width="116" alt="Screen Shot 2019-05-03 at 15 53 22" style="float: right;" src="https://user-images.githubusercontent.com/5007934/57145664-9f463080-6dbb-11e9-811a-e7166fae2b37.png"> marks the latest release. Compare this against your version of govuk-frontend, defined in `package.json`, to find out what changes have been introduced since then. See [example](https://github.com/alphagov/govuk-design-system/blob/master/package.json#L34) for where this information lives in GOV.UK Design System.

2. Check if the release is a breaking one (generally most releases won't be). Example of a breaking release title: 

<img width="775" alt="Screen Shot 2019-05-03 at 15 47 13" src="https://user-images.githubusercontent.com/5007934/57145256-c3554200-6dba-11e9-89b8-46cb89ce89e9.png">

 For breaking releases, read the release notes carefully as you might be required to make code changes to your project for `govuk-frontend` to work correctly.

2. To install a new version of govuk-frontend, run

```
npm install govuk-frontend@2.11.0
```
where `2.11.0` is the version you require.



3. _Optional but recommended step_: Watch `govuk-frontend` for "Releases only" to get notified when new releases come out. 

<img width="327" alt="Screen Shot 2019-05-03 at 15 44 29" src="https://user-images.githubusercontent.com/5007934/57145091-62c60500-6dba-11e9-824c-774c159d65c5.png">
Document how to update version of govuk-frontend
issue
closed
hannalaakso
username_0
issue