From ecbbd9da480e1f1e795e2e6805e356d66534ac73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Tue, 15 Dec 2020 10:18:51 -0500 Subject: [PATCH] chore: always check yarn lock and dedupe during update (#12508) * chore: always check yarn lock and dedupe during update * update yarn.lock --- .github/workflows/ci.yml | 8 +++++--- yarn.lock | 30 ++++++++++++++++++++---------- 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a9a60769d..e23184c662 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,14 +23,16 @@ jobs: key: yarn-${{ hashFiles('yarn.lock') }} restore-keys: | yarn- - - name: Update Yarn cache + - name: Check Yarn dedupe if: steps.yarn-cache.outputs.cache-hit != 'true' + run: | + yarn dedupe --check + - name: Check or update Yarn cache env: YARN_ENABLE_SCRIPTS: false # disable post-install scripts YARN_NODE_LINKER: pnp # use pnp linker for better performance: it's meant to update yarn cache only run: | - yarn dedupe --check - yarn install --immutable + yarn install --immutable --skip-builds test-coverage: name: Test on Node.js Latest diff --git a/yarn.lock b/yarn.lock index 6903cf4da5..7b49e202e7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -77,6 +77,7 @@ __metadata: resolution: "@babel/code-frame@workspace:packages/babel-code-frame" dependencies: "@babel/highlight": "workspace:^7.10.4" + "@types/chalk": ^2.0.0 chalk: ^2.0.0 strip-ansi: ^4.0.0 languageName: unknown @@ -3804,6 +3805,15 @@ __metadata: languageName: node linkType: soft +"@types/chalk@npm:^2.0.0": + version: 2.2.0 + resolution: "@types/chalk@npm:2.2.0" + dependencies: + chalk: "*" + checksum: 9cded9031f180268be59010fc1e13c7b4384e51f0ca8b75bc7a40bdd46f5f3c4859953525fb53663287e5bb25ca5df59396c276ce5c09e1a83aa7a2aec6a9f59 + languageName: node + linkType: hard + "@types/color-name@npm:^1.1.1": version: 1.1.1 resolution: "@types/color-name@npm:1.1.1" @@ -5360,6 +5370,16 @@ __metadata: languageName: node linkType: hard +"chalk@npm:*, chalk@npm:^4.0.0, chalk@npm:^4.1.0": + version: 4.1.0 + resolution: "chalk@npm:4.1.0" + dependencies: + ansi-styles: ^4.1.0 + supports-color: ^7.1.0 + checksum: f860285b419f9e925c2db0f45ffa88aa8794c14b80cc5d01ff30930bcfc384996606362706f0829cf557f6d36152a5fb2d227ad63c4bc90e2ec9e9dbed4a3c07 + languageName: node + linkType: hard + "chalk@npm:^1.0.0, chalk@npm:^1.1.3": version: 1.1.3 resolution: "chalk@npm:1.1.3" @@ -5384,16 +5404,6 @@ __metadata: languageName: node linkType: hard -"chalk@npm:^4.0.0, chalk@npm:^4.1.0": - version: 4.1.0 - resolution: "chalk@npm:4.1.0" - dependencies: - ansi-styles: ^4.1.0 - supports-color: ^7.1.0 - checksum: f860285b419f9e925c2db0f45ffa88aa8794c14b80cc5d01ff30930bcfc384996606362706f0829cf557f6d36152a5fb2d227ad63c4bc90e2ec9e9dbed4a3c07 - languageName: node - linkType: hard - "char-regex@npm:^1.0.2": version: 1.0.2 resolution: "char-regex@npm:1.0.2"