Fix self-dependency versions (#403)

* Fix self-dependency versions

* Print offending sections of yarn.lock

* Remove test input from yarn.lock

* Spacing

* Spacing

* Spacing

* Simplify bash

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
This commit is contained in:
Andrew Branch
2022-02-16 15:38:36 -08:00
committed by GitHub
parent d47f7a189c
commit 6a17c0d7da
6 changed files with 20 additions and 46 deletions

View File

@@ -17,6 +17,19 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: check dependencies
run: |
if grep "@definitelytyped/" yarn.lock; then
echo ""
echo "A package in this monorepo is depending on an older version of one of its siblings. \
Ensure all '@definitelytyped/*' dependencies in package.json files use the version \
listed in lerna.json to let lerna automatically keep them in sync."
echo ""
echo "yarn.lock"
cat yarn.lock | grep -A 5 -n "@definitelytyped/"
exit 1
fi
- name: install
run: yarn install --frozen-lockfile
- name: lint