Skip to content

Latest commit

 

History

History
executable file
·
25 lines (15 loc) · 1.01 KB

publishing-a-pre-release.md

File metadata and controls

executable file
·
25 lines (15 loc) · 1.01 KB

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 release-to-branch.

There should now be a branch pre-release-[your-branch-name-here] pushed to the GOV.UK Frontend remote origin.

To install this pre-release branch in another project, you can run the following command:

npm install --save alphagov/govuk-frontend#pre-release-[your-branch-name-here]