Skip to content

Commit 62409aa

Browse files
NickColleycalvin-lau-sig7domoscarginromaricpascal
committed
Update release guidance
Based on the changes made to the release process in the [improve the release process epic](#6676) Co-authored-by: Calvin Lau <77630796+calvin-lau-sig7@users.noreply.github.com> Co-authored-by: domoscargin <domoscargin@users.noreply.github.com> Co-authored-by: Romaric Pascal <romaric.pascal@digital.cabinet-office.gov.uk>
1 parent 22d7357 commit 62409aa

4 files changed

Lines changed: 98 additions & 77 deletions

File tree

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,51 @@
1-
# Tasks after publishing a new release of GOV.UK Frontend
1+
# After publishing a new release of GOV.UK Frontend
22

3-
Once we've published a new release of GOV.UK Frontend there are a number of things we still need to do, such as informing our community and updating our own repos.
3+
After we've published a new release of GOV.UK Frontend, there are things we still need to do, such as inform our community and update our own repos.
44

55
## Update our repos to use the new release
66

7-
Developers should update [govuk-design-system](https://github.com/alphagov/govuk-design-system) and [govuk-frontend-docs](https://github.com/alphagov/govuk-frontend-docs) to use the new release. When updating the design system, you should also test any new or updated guidance that relate to the new release and publish them along with the version update.
7+
We should update [govuk-design-system](https://github.com/alphagov/govuk-design-system) and [govuk-frontend-docs](https://github.com/alphagov/govuk-frontend-docs) to use the new release. When updating the Design System, we should also check that:
8+
- any guidance updates are published and show as expected
9+
- any updates coming from GOV.UK Frontend macro options show as expected
810

9-
## Let the community know about the new release
11+
## Send an email to mailing list subscribers
1012

11-
We now need to update our comms channels.
13+
We usually send out an email with the release comms, except for releases with minor fixes.
1214

13-
### The mailing list
14-
15-
The team should send out an email with the release comms drafted before publishing.
16-
17-
The release email should:
15+
This email should:
1816

1917
- give a summary of the update
20-
- explain on why teams should update
21-
- components or styles affected (if possible)
22-
- thanks to any major contributors (if possible, include name and organisation)
18+
- explain why teams should update
19+
- say which components or styles are affected (if applicable)
20+
- thank any major contributors using their GitHub usernames
2321

2422
A release email will typically end with a link to the version's [release notes](https://github.com/alphagov/govuk-frontend/releases), and a call-to-action button to the [update npm how-to page](https://frontend.design-system.service.gov.uk/updating-with-npm/#update-using-node-js-package-manager-npm).
2523

26-
For example, see the [release email for GOV.UK Frontend 4.4.0](https://us1.admin.mailchimp.com/campaigns/show?id=10053738).
24+
For example, see the [release email for GOV.UK Frontend 5.11.0](https://mailchi.mp/c877961d1db5/feature-release-govuk-frontend-v590-improved-file-upload-component-10977163?e=[UNIQID]).
2725

28-
### Slack
26+
## Send Slack messages to relevant channels
2927

30-
We should update both internal and x-gov slack channels:
28+
We should update both internal and cross-government Slack channels:
3129

3230
- [GDS: govuk-design-system](https://gds.slack.com/archives/CAF8JA25U)
3331
- [GDS: digital-service-platforms](https://gds.slack.com/archives/C01E20X06JK)
3432
- [x-gov: govuk-design-system](https://ukgovernmentdigital.slack.com/archives/C6DMEH5R6)
3533

3634
The message we send on Slack is usually a shorter version of the email.
3735

38-
We also need to review the GOV.UK Design System overview canvases we have on each support channel, updating the version number of GOV.UK Frontend in [GDS: #govuk-design-system](https://gds.slack.com/docs/T8GT9416G/F08UG2X7BFD) and [x-gov: #govuk-design-system](https://ukgovernmentdigital.slack.com/docs/T04V6EBTR/F058W5T94ET)
36+
We should also review the GOV.UK Design System overview canvases we have on each support channel, updating the version number of GOV.UK Frontend in [GDS: #govuk-design-system](https://gds.slack.com/docs/T8GT9416G/F08UG2X7BFD) and [x-gov: #govuk-design-system](https://ukgovernmentdigital.slack.com/docs/T04V6EBTR/F058W5T94ET).
3937

40-
### Design System website
38+
## Update the Design System website
4139

42-
We should check if we need to update the following places on the website:
40+
We should decide whether we need to update the following places on the website:
4341

44-
- the "what's new" section on the homepage of the website. The content for this section can be found in [/views/partials/\_whats-new.njk](https://github.com/alphagov/govuk-design-system/blob/main/views/partials/_whats-new.njk).
45-
- the aliases section in the metadata of the [Upcoming components and patterns page](https://github.com/alphagov/govuk-design-system/blob/main/src/community/upcoming-components-patterns/index.md?plain=1) to ensure that if a release includes a new component that searches for that component on the website no longer point at that page
42+
- the "What's New" section on the homepage of the website - the content for this section can be found in [/views/partials/\_whats-new.njk](https://github.com/alphagov/govuk-design-system/blob/main/views/partials/_whats-new.njk)
43+
- the aliases section in the metadata of the [Upcoming components and patterns page](https://github.com/alphagov/govuk-design-system/blob/main/src/community/upcoming-components-patterns/index.md?plain=1) to make sure that searches on the website for a new component no longer point at that page
4644

47-
## Clear the decks
45+
## Tidy up our issue list and sprint board
4846

49-
Finally, we should make sure that our issue list and sprint board are tidy by making sure:
47+
Finally, we should tidy up our issue list and sprint board by making sure:
5048

51-
- issues created for this release are all complete, closed, and moved into the **Done** column on the [Design System cycle board](https://github.com/orgs/alphagov/projects/53)
52-
- that all the issues (on the same board) solved and/or published in this release have been moved from the **Ready to Release** column to **Done**
49+
- issues created for this release are all complete, closed and moved into the **Done** column on the [Design System cycle board](https://github.com/orgs/alphagov/projects/53)
50+
- all the issues on the cycle board that were closed in this release have been moved from the **Ready to Release** column to **Done**
5351
- any associated milestones are closed

docs/releasing/before-publishing-a-release.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,49 @@
1-
# Tasks before publishing a new release of GOV.UK Frontend
1+
# Before publishing a new release of GOV.UK Frontend
22

3-
When preparing to publish a release of GOV.UK Frontend we need to ensure we are following proper procedure to effectively track our work and are prepared to publish our new release.
3+
When preparing to publish a release of GOV.UK Frontend, we need to make sure we’re:
4+
5+
following proper procedures to effectively track our work
6+
ready to publish our new release
47

58
## Kick off the release
69

7-
The whole team should coordinate whether to publish a new release. Choose a team member to lead on the release, typically a developer.
10+
The whole team should decide whether to publish a new release, then choose a developer to lead on the release.
811

9-
We next need to define a cutoff date for this release. Once the cutoff date passes, do not add any further major changes. We can still add small fixes before we publish as long as we notify the team. However, we should try to avoid adding too many fixes in this way, as it requires us to have to repeat steps of the release process.
12+
We then need to set a cutoff date for this release. Once the cutoff date passes, do not add any further major changes. We can still add small fixes before we publish as long as we notify the team. However, we should try to avoid adding too many fixes in this way, as it would mean redoing steps of the release process.
1013

1114
## Raise an issue for the release
1215

13-
Use the '🚀 Release' issue template to [create an issue in the govuk-frontend repository](https://github.com/alphagov/govuk-frontend/issues/new/choose) tracking the tasks for this release.
16+
Use the '🚀 Release' issue template to [create an issue in the govuk-frontend repository](https://github.com/alphagov/govuk-frontend/issues/new/choose) to track the tasks for this release.
1417

15-
The template lists the main tasks that happen for every release. If the release at hand needs some specific steps, make sure to add items to the lists for each of them, especially:
18+
The template lists the main tasks we do for every release. If the release needs some specific tasks, make sure to add items to the lists for each of them, especially:
1619

17-
- merging documentation [PRs on govuk-design-system](https://github.com/alphagov/govuk-design-system/pulls?q=sort%3Aupdated-desc+is%3Apr+is%3Aopen)
18-
- merging documentation [PRs on govuk-frontend-docs](https://github.com/alphagov/govuk-frontend-docs/pulls?q=sort%3Aupdated-desc+is%3Apr+is%3Aopen)
20+
- merging [documentation PRs on govuk-design-system](https://github.com/alphagov/govuk-design-system/pulls?q=sort%3Aupdated-desc+is%3Apr+is%3Aopen)
21+
- merging [documentation PRs on govuk-frontend-docs](https://github.com/alphagov/govuk-frontend-docs/pulls?q=sort%3Aupdated-desc+is%3Apr+is%3Aopen)
1922

20-
This issue should be:
23+
Add this release issue to:
2124

22-
- added to the [Design System cycle board](https://github.com/orgs/alphagov/projects/53) backlog
23-
- added to that release's milestone if there's one
25+
- the [Design System cycle board](https://github.com/orgs/alphagov/projects/53) backlog
26+
- the release's milestone, if it exists
2427

2528
## Draft comms and release notes for the community
2629

27-
A content designer and/or tech writer should do the following:
30+
A content designer and/or technical writer should do the following:
31+
32+
- write announcements for Slack posts and email, including which channels to use
33+
- write content to go on the Design System website after we release GOV.UK Frontend (for example, [draft comms for the Cookie banner component](https://docs.google.com/document/d/1jVyMB7i94NOeflWaf3kE4Q4APMXGfluK3rOh74IHO08/edit))
34+
- gather the list of contributors to the release and make sure we thank them in the comms and release notes, tagging their GitHub username
2835

29-
- write announcements for slack posts, email and to go on the design system website after we release GOV.UK Frontend (for example, [draft comms for the cookie banner component](https://docs.google.com/document/d/1jVyMB7i94NOeflWaf3kE4Q4APMXGfluK3rOh74IHO08/edit))
30-
- check who the release’s contributors are and if we have consent to include their name
36+
## Get release notes ready to publish
3137

32-
A technical writer should finalise draft of release notes. Release notes will require a 2i review by another technical writer, make sure the technical writer has time to coordinate this. When ready, open a pull request to update the [CHANGELOG.md](https://github.com/alphagov/govuk-frontend/blob/main/CHANGELOG.md) file with the updated release notes.
38+
A technical writer should finalise the draft of the release notes. Release notes will need a 2i review, so make sure the technical writer has time to coordinate this. When ready, open a pull request to update the [CHANGELOG.md](https://github.com/alphagov/govuk-frontend/blob/main/CHANGELOG.md) file with the updated release notes.
3339

34-
If the technical writer is unavailable, ask for help in the [gds-technical-writing Slack channel](https://gds.slack.com/archives/CAD0R2NQG) or confer with a content designer.
40+
If a technical writer is unavailable, ask a content designer for help. If a content designer is unavailable, request help in the [gds-technical-writing Slack channel](https://gds.slack.com/archives/CAD0R2NQG).
3541

3642
The team should also post a message on any relevant [issue discussions](https://github.com/orgs/alphagov/projects/43/views/1) with rationale for any decisions we've made.
3743

3844
## Finalise the release
3945

40-
At this stage, the person leading the release should agree the publishing date. Once the team agrees, this confirms a code and content freeze. Use the [#design-system-team-channel](https://gds.slack.com/app_redirect?channel=design-system-team-channel) to confirm sign-off from:
46+
At this stage, the developer leading the release should agree on the publishing date with the rest of the team, then confirm a date for a code freeze. Use the [#design-system-team-channel](https://gds.slack.com/app_redirect?channel=design-system-team-channel) to confirm sign-off from the:
4147

4248
- content designer, technical writer and designers for guidance, examples and community backlog decision rationale
4349
- technical writer and developers for Nunjucks macros
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Publishing a preview of GOV.UK Frontend
22

3-
This preview guidance is aimed at Design System team members. If you're an external contributor who needs to create a preview, please [contact the Design System team](https://design-system.service.gov.uk/contact/) and we'll do it for you.
3+
This preview guidance is aimed at Design System team members. If you're an external contributor who needs to create a preview, [contact the Design System team](https://design-system.service.gov.uk/contact/), and we'll do it for you.
44

5-
Before you publish a preview, you need to have committed a code change to GOV.UK Frontend. Then follow these instructions.
5+
To publish a preview, you must first commit a change to GOV.UK Frontend.
66

77
Use previews when you:
88

@@ -14,36 +14,36 @@ Use previews when you:
1414
1515
## What happens when you preview GOV.UK Frontend
1616

17-
When you preview GOV.UK Frontend, this creates a GitHub branch. This branch contains the GOV.UK Frontend [`/packages/govuk-frontend`](/packages/govuk-frontend) directory with your trial changes.
17+
Previewing GOV.UK Frontend creates a GitHub branch. This branch contains the GOV.UK Frontend [`/packages/govuk-frontend`](/packages/govuk-frontend) directory with your trial changes.
1818

1919
Projects can point to this branch in their package.json, instead of to the published [GOV.UK Frontend npm package](https://www.npmjs.com/package/govuk-frontend). No changes are published to the GOV.UK Frontend npm package as part of this process.
2020

2121
## Publish a preview
2222

2323
1. Run `git checkout -b BRANCH-NAME` to check out a new branch you want to preview, or `git checkout BRANCH-NAME` to check out an existing branch.
2424

25-
2. Make any required changes and commit them.
25+
1. Make any required changes and commit them.
2626

27-
3. Ensure you're running the version of NodeJS matching [`.nvmrc`](/.nvmrc).
28-
- If you use NVM, run `nvm use` to set up the right version
29-
- If you use another management system (like [`asdf`](https://asdf-vm.com/guide/getting-started.html)), compare the output of `node --version` and install the right one if necessary
27+
1. Make sure you're running the version of Node.js matching [`.nvmrc`](/.nvmrc).
28+
- If you use NVM, run `nvm use` to set up the correct version
29+
- If you use another management system (like [`asdf`](https://asdf-vm.com/guide/getting-started.html)), compare the output of `node --version` and install the correct one if necessary
3030

31-
4. Run `npm ci` to make sure you have the exact dependencies installed.
32-
33-
5. Run `npm run publish-preview` to create and push a new branch that contains your changes. This process may take a few moments and will display a `Success!` message.
31+
1. Run `npm run publish-preview` to create and push a new branch that contains your changes - this process may take a few moments and will display a `Success!` message.
3432

3533
## Preview your changes
3634

3735
1. If you need to update an existing project to use the preview, copy the command that displays after the `Success!` message.
3836

39-
2. Navigate to the project in the command line and run the success notification command. Running this command makes the project point to the preview branch, instead of to the published [GOV.UK Frontend npm package](https://www.npmjs.com/package/govuk-frontend). You can now preview your trial changes to GOV.UK Frontend.
37+
1. Navigate to the project in the command line and run the success notification command - running this command makes the project point to the preview branch, instead of to the published [GOV.UK Frontend npm package](https://www.npmjs.com/package/govuk-frontend).
38+
39+
1. You can now preview your trial changes to GOV.UK Frontend.
4040

4141
## Update a preview
4242

43-
1. Check out the Git branch you previously previewed (this is the branch you work on, not the branch the script created).
43+
1. Check out the Git branch you previewed earlier (this is the branch you work on, not the branch the script created).
4444

45-
2. Make the required changes and commit them.
45+
1. Make the required changes and commit them.
4646

47-
3. Follow steps 3-5 in [Publish a preview](#publish-a-preview).
47+
1. Follow steps 3 to 4 in [Publish a preview](#publish-a-preview).
4848

49-
4. Follow the steps in [Preview your changes](#preview-your-changes).
49+
1. Follow the steps in [Preview your changes](#preview-your-changes).

0 commit comments

Comments
 (0)