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