Skip to content

Commit

Permalink
Change the way we install yarn in .yarn/releases
Browse files Browse the repository at this point in the history
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 yarnpkg/yarn#7847
  • Loading branch information
sleshchenko committed Sep 21, 2021
1 parent c4a65f3 commit 74f6e57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codeready-workspaces-dashboard/build/scripts/sync.sh
Expand Up @@ -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

Expand Down

0 comments on commit 74f6e57

Please sign in to comment.