whitehall icon indicating copy to clipboard operation
whitehall copied to clipboard

Upgrade Yarn to v4

Open eYinka opened this issue 2 months ago • 2 comments

Following the deprecation of Yarn 1.xx and 2.xx, we have upgraded Whitehall's base image to use Yarn v4 . Consequently, flags like --production --frozen-lockfile have been removed.

Note: Due to lockfile conflicts on the current Github Action runner (uses yarn v1), we have had to switch to using the corepack branch which supports Yarn v4 and will not throw errors in CI.

PR for local Docker: https://github.com/alphagov/govuk-docker/pull/908

Flags: https://yarnpkg.com/cli/install

JIRA: https://gov-uk.atlassian.net/browse/WHIT-1954

Checks:

  • [X] Javascript rake tasks are running fine
  • [X] Can build the app locally with make whitehall
  • [x] Can run the UI without broken Javascript
  • [X] Github CI is fine

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

This application is owned by the Whitehall Experience team. Please let us know in #govuk-whitehall-experience-tech when you raise any PRs.

Follow these steps if you are doing a Rails upgrade.

eYinka avatar Oct 24 '25 16:10 eYinka