mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
lock yarn dependency
This commit is contained in:
parent
4e61528ad5
commit
5d6075b475
4 changed files with 16 additions and 5 deletions
|
|
@ -3,6 +3,7 @@
|
|||
set -xeo pipefail
|
||||
|
||||
NODE_VERSION=${1:-7.x}
|
||||
YARN_VERSION=${2:-0.27.5-1}
|
||||
|
||||
# add official debian repos for node and yarn
|
||||
curl -sS -L https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
|
||||
|
|
@ -10,4 +11,4 @@ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
|||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||
|
||||
apt-get update
|
||||
apt-get install -y nodejs yarn
|
||||
apt-get install -y nodejs yarn=$YARN_VERSION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue