1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

ci - cache deps before patch-package (#10735)

* ci - cache deps before patch-package

* ci - bump dep cache number (cache break)
This commit is contained in:
kumavis 2021-03-26 11:55:03 +08:00 committed by Mark Stacey
parent ed2e538636
commit d169f151cd
3 changed files with 9 additions and 5 deletions

View File

@ -135,16 +135,20 @@ jobs:
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }} key: dependency-cache-v1-{{ checksum "yarn.lock" }}
- run: - run:
name: Install deps name: Install deps
command: | command: |
.circleci/scripts/deps-install.sh .circleci/scripts/deps-install.sh
- save_cache: - save_cache:
key: dependency-cache-{{ checksum "yarn.lock" }} key: dependency-cache-v1-{{ checksum "yarn.lock" }}
paths: paths:
- node_modules/ - node_modules/
- build-artifacts/yarn-install-har/ - build-artifacts/yarn-install-har/
- run:
name: Postinstall
command: |
yarn setup:postinstall
- persist_to_workspace: - persist_to_workspace:
root: . root: .
paths: paths:

View File

@ -5,7 +5,7 @@ set -x
# Exit immediately if a command exits with a non-zero status. # Exit immediately if a command exits with a non-zero status.
set -e set -e
yarn setup-ci yarn install --frozen-lockfile --har
# Move HAR file into directory with consistent name so that we can cache it # Move HAR file into directory with consistent name so that we can cache it
mkdir -p build-artifacts/yarn-install-har mkdir -p build-artifacts/yarn-install-har

View File

@ -3,8 +3,8 @@
"version": "0.0.0", "version": "0.0.0",
"private": true, "private": true,
"scripts": { "scripts": {
"setup": "yarn install && yarn patch-package && yarn allow-scripts", "setup": "yarn install && yarn setup:postinstall",
"setup-ci": "yarn install --frozen-lockfile --har && yarn patch-package && yarn allow-scripts", "setup:postinstall": "yarn patch-package && yarn allow-scripts",
"start": "node development/build/index.js dev", "start": "node development/build/index.js dev",
"start:lavamoat": "yarn build dev", "start:lavamoat": "yarn build dev",
"dist": "yarn build prod", "dist": "yarn build prod",