Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 917 Bytes

publishing-a-pre-release.md

File metadata and controls

19 lines (11 loc) · 917 Bytes

Publishing pre-release of GOV.UK Frontend

We use pre-releases when:

  • We are working on a new contribution and want to see it in the Design System website
  • We want to try an experimental feature as if it's pushed to npm.

This is done by pushing the files used for a GOV.UK Frontend release (the contents of the package directory) to a new branch which can be installed by npm as if it was a released npm package.

No changes get published to npm as part of the process.

  1. Checkout the branch you want to pre-release and pull latest changes.

  2. Run nvm use to ensure you are using the right version of Node.js and npm.

  3. Run npm install to ensure you have the latest dependencies installed.

  4. Run npm run pre-release. This will create and push a new branch pre-release-[your-branch-name-here] to GitHub.

  5. Use the command provided by the script to update other projects to use the pre-release.