You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/releasing/publishing-a-pre-release.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Projects can point to this branch in their package.json, instead of to the publi
25
25
26
26
3. Run `nvm use` to make sure you’re using the right version of Node.js and npm.
27
27
28
-
4. Run `npm ci` to make sure you have the correct dependencies installed.
28
+
4. Run `npm ci` to make sure you have the exact dependencies installed.
29
29
30
30
5. Run `npm run pre-release` to create and push a new branch that contains your changes. This process may take a few moments and will display a `Success!` message.
Copy file name to clipboardExpand all lines: docs/releasing/publishing-from-a-support-branch.md
+23-13Lines changed: 23 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Read the docs for [what to do before publishing a release](/docs/releasing/befor
35
35
36
36
4. Create a new branch for your code changes (for example, `git checkout -b fix-the-thing`) from the `support/<MAJOR VERSION NUMBER>.x` branch.
37
37
38
-
5. Run `npm install` to make sure you have the latest dependencies installed.
38
+
5. Run `npm ci` to make sure you have the exact dependencies installed.
39
39
40
40
6. Make your code changes, and test them following our [standard testing requirements](/docs/contributing/testing.md).
41
41
@@ -53,25 +53,35 @@ Read the docs for [what to do before publishing a release](/docs/releasing/befor
53
53
54
54
3. Run `nvm use` to make sure you’re using the right version of Node.js and npm.
55
55
56
-
4. Run `npm install` to make sure you have the latest dependencies installed.
56
+
4. Run `npm ci` to make sure you have the exact dependencies installed.
57
57
58
-
5.In the CHANGELOG.md, replace the 'Unreleased' heading with the new version number and its release type. For example, '3.14.1 (Fix release)'. Also add a new 'Unreleased' heading above this new heading, so people raising new pull requests know where to add them in the changelog.
58
+
5.Update the [`CHANGELOG.md`](../../CHANGELOG.md) by:
59
59
60
-
6. Update the `package/package.json` version with the new version number.
60
+
- changing the 'Unreleased' heading to the new version number and its release type. For example, '3.14.1 (Fix release)'
61
+
- adding a new 'Unreleased' heading above the new version number and release type, so users will know where to add PRs to the changelog
62
+
- saving your changes
61
63
62
-
7. Save the changes. Do not commit.
64
+
6. Apply the new version number by running:
63
65
64
-
8. Run `npm run build-release` to:
66
+
```
67
+
npm version <NEW VERSION NUMBER> --no-git-tag-version --workspace package
68
+
```
65
69
66
-
- build GOV.UK Frontend into the `/package` and `/dist` directories
67
-
- commit the changes
68
-
- push a branch to GitHub
70
+
This step will update the `package.json` and project `package-lock.json` files.
69
71
70
-
You will now be prompted to continue or cancel.
72
+
Do not commit the changes.
71
73
72
-
9. Raise a pull request, with `support/<MAJOR VERSION NUMBER>.x` as the base branch to merge into.
74
+
7. Run `npm run build-release` to:
73
75
74
-
10. Once a developer approves the pull request, merge it into `support/<MAJOR VERSION NUMBER>.x`.
76
+
- build GOV.UK Frontend into the `/package` and `/dist` directories
77
+
- commit the changes
78
+
- push a branch to GitHub
79
+
80
+
You will now be prompted to continue or cancel.
81
+
82
+
8. Raise a pull request, with `support/<MAJOR VERSION NUMBER>.x` as the base branch to merge into.
83
+
84
+
9. Once a developer approves the pull request, merge it into `support/<MAJOR VERSION NUMBER>.x`.
75
85
76
86
### Publish the release to npm
77
87
@@ -106,7 +116,7 @@ Read the docs for [what to do after publishing a release](/docs/releasing/after-
106
116
107
117
1. Check out the `main` branch and pull the latest changes.
108
118
109
-
2. Run `nvm use` and `npm install` to make sure you have the latest dependencies installed.
119
+
2. Run `nvm use` and `npm ci` to make sure you have the exact dependencies installed.
110
120
111
121
3. Make the same changes as in the patch fix pull request, and test them using our [standard testing requirements](/docs/contributing/testing.md). Remember that `main` will contain changes the support branch did not have, which might affect the code changes you’ll need to make.
Copy file name to clipboardExpand all lines: docs/releasing/publishing.md
+21-6Lines changed: 21 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,18 +10,33 @@ Developers should pair on releases. When remote working, it can be useful to be
10
10
11
11
2. Run `nvm use` to make sure you're using the right version of Node.js and npm.
12
12
13
-
3. Run `npm install` to make sure you have the latest dependencies installed.
13
+
3. Run `npm ci` to make sure you have the exact dependencies installed.
14
14
15
15
4. Create and check out a new branch (`release-[version-number]`). See the [versioning documentation](/docs/contributing/versioning.md) for more information.
16
16
17
17
5. Update the [`CHANGELOG.md`](../../CHANGELOG.md) by:
18
18
19
-
- changing the 'Unreleased' heading to the new version-number and release-type - for example, '3.11.0 (Feature release)'
20
-
- adding a new 'Unreleased' heading above the new version-number and release-type, so users will know where to add PRs to the changelog
19
+
- changing the 'Unreleased' heading to the new version number and release type. For example, '3.11.0 (Feature release)'
20
+
- adding a new 'Unreleased' heading above the new version number and release type, so users will know where to add PRs to the changelog
21
+
- saving your changes
21
22
22
-
6.Update [`package/package.json`](../../package/package.json) version with the new version-number.
23
+
6.Apply the new versionnumber by running:
23
24
24
-
7. Save the changes. Do not commit.
25
+
```
26
+
npm version <NEW VERSION NUMBER> --no-git-tag-version --workspace package
27
+
```
28
+
29
+
This step will update the `package.json` and project `package-lock.json` files.
30
+
31
+
Do not commit the changes.
32
+
33
+
7. Update browser data from ["Can I use"](https://caniuse.com) by running:
34
+
35
+
```
36
+
npx update-browserslist-db@latest
37
+
```
38
+
39
+
This step will update the project `package-lock.json` file if updates are found.
25
40
26
41
8. Run `npm run build-release` to:
27
42
@@ -32,7 +47,7 @@ Developers should pair on releases. When remote working, it can be useful to be
32
47
You will now be prompted to continue or cancel.
33
48
34
49
9. Create a pull request and copy the changelog text.
35
-
When reviewing the PR, check that the version-numbers have been updated and that the compiled assets use this version-number.
50
+
When reviewing the PR, check that the versionnumbers have been updated and that the compiled assets use this versionnumber.
36
51
37
52
10. Once a reviewer approves the pull request, merge it to **main**.
0 commit comments