From 74f6e57eb0b2980455469c5907164247f32935fa Mon Sep 17 00:00:00 2001 From: Sergii Leshchenko Date: Tue, 21 Sep 2021 12:40:59 +0300 Subject: [PATCH] Change the way we install yarn in .yarn/releases We can't use set-policies anymore since it relies on an ability to set GitHub token as query param while header now is required. See for more details https://github.com/yarnpkg/yarn/issues/7847 --- codeready-workspaces-dashboard/build/scripts/sync.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codeready-workspaces-dashboard/build/scripts/sync.sh b/codeready-workspaces-dashboard/build/scripts/sync.sh index 14c93ac19f..9f67e02801 100755 --- a/codeready-workspaces-dashboard/build/scripts/sync.sh +++ b/codeready-workspaces-dashboard/build/scripts/sync.sh @@ -89,7 +89,8 @@ fi configjson=$(curl -sSLo- https://raw.githubusercontent.com/redhat-developer/codeready-workspaces/${SCRIPTS_BRANCH}/dependencies/job-config.json) YARN_VERSION=$(echo "${configjson}" | jq -r --arg CRW_VERSION "${CRW_VERSION}" '.Other["YARN_VERSION"][$CRW_VERSION]'); echo "Install Yarn $YARN_VERSION into .yarn/ ... " -yarn policies set-version ${YARN_VERSION} +mkdir -p ${TARGETDIR}/.yarn/releases +curl https://github.com/yarnpkg/yarn/releases/download/v${YARN_VERSION}/yarn-${YARN_VERSION}.js -o ${TARGETDIR}/.yarn/releases/yarn-${YARN_VERSION}.js pushd "${TARGETDIR}" >/dev/null