Skip to content
Snippets Groups Projects
Unverified Commit bb831d2c authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

CI: Ensure the use of lockfile when running yarn (#13720)

This makes the dependencies reproducible in the CI run, making it less
susceptible to external disturbances (e.g. https://yarnpkg.com/ being
unreachble) since there is just-in-time version resolution anymore and
likely all the necessary packages are available in the build cache.
parent 29499436
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,12 @@ version() {
frontend-deps() {
echo "Running 'yarn' to download javascript dependencies..." &&
yarn
if [[ -z "${CI}" ]]; then
yarn
else
echo "CI run: enforce the lockfile"
yarn install --frozen-lockfile
fi
}
frontend() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment