chore: always check yarn lock and dedupe during update (#12508)

* chore: always check yarn lock and dedupe during update

* update yarn.lock
This commit is contained in:
Huáng Jùnliàng 2020-12-15 10:18:51 -05:00 committed by GitHub
parent 28d2cbcbf3
commit ecbbd9da48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 13 deletions

View File

@ -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

View File

@ -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"