-
Checkout master and pull latest changes.
-
Run
nvm use
to ensure you are using the right version of Node.js and npm. -
Run
npm install
to ensure you have the latest dependencies installed. -
Create and checkout a new branch (
release-[version-number]
). The version number is determined by looking at the current "Unreleased" CHANGELOG changes and updating the previous release number depending on the kind of entries:
Breaking changes
corresponds to amajor
(1.X.X) change.New features
corresponds to aminor
(X.1.X) change.Fixes
corresponds to apatch
(X.X.1) change.
For example if the previous version is 2.3.0
and there are entries for Breaking changes
then the new release should be 3.0.0
.
-
Update
CHANGELOG.md
"Unreleased" heading with the new version number. -
Update
package/package.json
version with the new version number. -
Commit the changes to
CHANGELOG.md
andpackage/package.json
with the commit message "Release [version number]". -
Create a pull request and copy the changelog text. When reviewing the PR, check that the version numbers have been updated and the changelog
-
Once the Digital Marketplace GOV.UK Frontend pull request is approved, merge to master.
-
Create a release in the GitHub interface
- select the latest tag version
- set "Digital Marketplace GOV.UK Frontend release v[version-number]" as the title
- add release notes from changelog
- publish release
A Github Action will detect this and push the release to NPM.