Chore: Migrate yarn from v1 to v2 (#39082)
* Chore: Migrate yarn from v1 to v2 Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
This commit is contained in:
@@ -96,7 +96,7 @@ function build_frontend() {
|
||||
if [ ! -d "dist" ]; then
|
||||
mkdir dist
|
||||
fi
|
||||
yarn install --pure-lockfile --no-progress
|
||||
YARN_ENABLE_PROGRESS_BARS=false yarn install --immutable
|
||||
echo "Building frontend"
|
||||
|
||||
start=$(date +%s%N)
|
||||
|
||||
@@ -109,7 +109,7 @@ ENV GOVERSION=1.17 \
|
||||
PATH=/usr/local/go/bin:$PATH \
|
||||
GOPATH=/go \
|
||||
NODEVERSION=14.17.6-1nodesource1 \
|
||||
YARNVERSION=1.22.5-1
|
||||
YARNVERSION=3.1.0-rc.5
|
||||
|
||||
# Use ARG so as not to persist environment variable in image
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
@@ -14,7 +14,7 @@ install:
|
||||
# install nodejs and npm
|
||||
- ps: Install-Product node $env:nodejs_version
|
||||
- npm install -g yarn --silent
|
||||
- yarn install --pure-lockfile --no-progress
|
||||
- YARN_ENABLE_PROGRESS_BARS=false yarn install --immutable
|
||||
- npm install -g grunt-cli
|
||||
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.zip
|
||||
- 7z x go%GOVERSION%.windows-amd64.zip -y -oC:\ > NUL
|
||||
|
||||
Reference in New Issue
Block a user