chore: setup Yarn constraints (#13363)
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -23,11 +23,14 @@ jobs:
|
||||
key: yarn-${{ hashFiles('yarn.lock') }}
|
||||
restore-keys: |
|
||||
yarn-
|
||||
- name: Check Yarn dedupe
|
||||
- name: 'Check for unmet constraints (fix w/ "yarn constraints --fix")'
|
||||
run: |
|
||||
yarn constraints
|
||||
- name: 'Check for duplicate dependencies (fix w/ "yarn dedupe")'
|
||||
if: steps.yarn-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
yarn dedupe --check
|
||||
- name: Check or update Yarn cache
|
||||
- name: 'Check or update Yarn cache (fix w/ "yarn install")'
|
||||
env:
|
||||
YARN_ENABLE_SCRIPTS: false # disable post-install scripts
|
||||
YARN_NODE_LINKER: pnp # use pnp linker for better linking performance: it's meant to update yarn cache only
|
||||
|
||||
Reference in New Issue
Block a user