Update to yarn 1.21.1

Last year there was a recommended security update:
https://classic.yarnpkg.com/blog/2019/07/12/recommended-security-update/

This updates yarn to the latest stable version
This commit is contained in:
Lukas Eipert 2020-02-05 21:12:04 +01:00
parent 0ca8b407cc
commit 034a8bd568
No known key found for this signature in database
GPG key ID: 148BEA37CB35B2AC
5 changed files with 28 additions and 27 deletions

View file

@ -114,6 +114,7 @@ function print_yarn_args() {
case "$1" in
1.12) YARN_INSTALL_VERSION=1.12.3-1 ;;
1.16) YARN_INSTALL_VERSION=1.16.0-1 ;;
1.21) YARN_INSTALL_VERSION=1.21.1-1 ;;
*) echo "Unknown yarn version $1"; exit 1;
esac
printf -- "--build-arg YARN_INSTALL_VERSION=%s " "$YARN_INSTALL_VERSION"

View file

@ -3,7 +3,7 @@ set -xeuo pipefail
IFS=$'\n\t'
NODE_INSTALL_VERSION=${1:-12.4.0}
YARN_INSTALL_VERSION=${2:-1.16.0-1}
YARN_INSTALL_VERSION=${2:-1.21.1-1}
# Map MAJOR.MINOR.patch -> MAJOR.x
NODE_MAJOR=`echo $NODE_INSTALL_VERSION | sed -r -e "s/([0-9]+)\.[0-9]+.*/\1\.x/g"`

View file

@ -23,7 +23,7 @@ apt-get install -yq --no-install-recommends imagemagick
# Installing node & yarn
NODE_INSTALL_VERSION=12.4.0
YARN_INSTALL_VERSION=1.16.0-1
YARN_INSTALL_VERSION=1.21.1-1
/scripts/install-node $NODE_INSTALL_VERSION $YARN_INSTALL_VERSION && node --version && yarn --version
# Installing gitlab-runner