Skip to content

Commit ee4186b

Browse files
Trottdanielleadams
authored andcommitted
build: add tools/doc to tools.yml updates
PR-URL: #41036 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yash Ladha <[email protected]>
1 parent 62e0aa9 commit ee4186b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/tools.yml

+14
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ jobs:
3939
cd ../..
4040
make lint-md-rollup
4141
fi
42+
- id: doc
43+
run: |
44+
cd tools/doc
45+
npm ci
46+
NEW_VERSION=$(npm outdated --parseable | cut -d: -f4 | xargs)
47+
if [ "$NEW_VERSION" != "" ]; then
48+
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
49+
rm -rf package-lock.json node_modules
50+
# Include $NEW_VERSION to explicitly update the package.json
51+
# entry for the dependency and also so that semver-major updates
52+
# are not skipped.
53+
npm install --ignore-scripts $NEW_VERSION
54+
npm install --ignore-scripts
55+
fi
4256
steps:
4357
- uses: actions/checkout@v2
4458
with:

0 commit comments

Comments
 (0)