set npm version as part of the npm-dependencies CI task (#5427) (#5428)

* set npm version as part of the npm-dependencies CI task

* Set branch name to only build ios-simulator

(cherry picked from commit 37c74ecef0)

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
Mattermost Build 2021-06-05 17:47:14 +02:00 committed by GitHub
parent 84de817451
commit afa18fb5d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,6 +92,8 @@ commands:
npm-dependencies:
description: "Get JavaScript dependencies"
steps:
- node/install-npm:
version: '6.14.11'
- restore_cache:
name: Restore npm cache
key: v2-npm-{{ checksum "package.json" }}-{{ arch }}
@ -159,8 +161,6 @@ commands:
steps:
- checkout:
path: ~/mattermost-mobile
- node/install-npm:
version: '6.14.11'
- npm-dependencies
- pods-dependencies
- assets
@ -590,6 +590,7 @@ workflows:
- /^build-\d+$/
- /^build-ios-\d+$/
- /^build-ios-beta-\d+$/
- /^build-ios-sim-\d+$/
- github-release:
context: mattermost-mobile-unsigned