From 0808c0edf12cc68672e10c007fde94628fc6912c Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 26 Sep 2019 11:18:20 +0100 Subject: [PATCH] Clean Yarn cache during release Always run `yarn cache clean` during the `dist` step to workaround a Yarn bug with Git commit package dependencies. --- release.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/release.sh b/release.sh index 3ff018c67..702e88cc3 100755 --- a/release.sh +++ b/release.sh @@ -195,6 +195,11 @@ if [ $dodist -eq 0 ]; then pushd "$builddir" git clone "$projdir" . git checkout "$rel_branch" + # We use Git branch / commit dependencies for some packages, and Yarn seems + # to have a hard time getting that right. See also + # https://github.com/yarnpkg/yarn/issues/4734. As a workaround, we clean the + # global cache here to ensure we get the right thing. + yarn cache clean yarn install # We haven't tagged yet, so tell the dist script what version # it's building