diff --git a/.circleci/config.yml b/.circleci/config.yml index f68bbf63..8d4d0eab 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -66,9 +66,13 @@ commands: type: string default: package.json steps: + - run: + name: "Check latest versions of dependencies" + command: | + npm outdated --json > "<>/outdated-packages.json" || true - restore_cache: name: "Restoring <> cache" - key: <>-dependency-cache-v5-{{ .Environment.CIRCLE_JOB }}-{{ checksum "<>/<>" }} + key: <>-dependency-cache-v6-{{ .Environment.CIRCLE_JOB }}-{{ checksum "<>/<>" }}-{{ checksum "<>/outdated-packages.json" }} - run: name: "<> install in <>" command: | @@ -83,9 +87,10 @@ commands: fi - save_cache: name: "Saving <> cache" - key: <>-dependency-cache-v5-{{ .Environment.CIRCLE_JOB }}-{{ checksum "<>/<>" }} + key: <>-dependency-cache-v6-{{ .Environment.CIRCLE_JOB }}-{{ checksum "<>/<>" }}-{{ checksum "<>/outdated-packages.json" }} paths: - "<>/node_modules/" + - run: rm "<>/outdated-packages.json" inject-solc-js-tarball: description: "Recursively finds and replaces all instances of solc-js module installed in node_modules/ with the one from a tarball."