diff --git a/.circleci/config.yml b/.circleci/config.yml index f8b23967..bc70f758 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -62,7 +62,7 @@ commands: default: "" steps: - run: apt-get update && apt-get -y install << parameters.apt_opts >> - - run: npm install + - run: npm ci win_make: description: "Run mattermost's makefile.ps1 on ./scripts/" @@ -289,7 +289,7 @@ jobs: at: ./dist - run: name: Installing npm dependencies - command: npm install + command: npm ci - build: os: mac path: ./dist/macos-release diff --git a/scripts/Makefile.ps1 b/scripts/Makefile.ps1 index c2be6b4f..7d3638a2 100644 --- a/scripts/Makefile.ps1 +++ b/scripts/Makefile.ps1 @@ -244,8 +244,8 @@ function Run-BuildChangelog { } function Run-BuildElectron { - Print-Info "Installing nodejs/electron dependencies (running npm install)..." - npm install + Print-Info "Installing nodejs/electron dependencies (running npm ci)..." + npm ci #npm install --prefix="$(Get-RootDir)" "$(Get-RootDir)" Print-Info "Building nodejs/electron code (running npm run build)..." npm run build