Skip to content

Commit 9691d7d

Browse files
Trottdanielleadams
authored andcommitted
build: add tools/doc to tools.yml updates
PR-URL: #41036 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yash Ladha <yash@yashladha.in>
1 parent d8f5f72 commit 9691d7d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/tools.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@ jobs:
4848
cd ../..
4949
make lint-md-rollup
5050
fi
51+
- id: doc
52+
run: |
53+
cd tools/doc
54+
npm ci
55+
NEW_VERSION=$(npm outdated --parseable | cut -d: -f4 | xargs)
56+
if [ "$NEW_VERSION" != "" ]; then
57+
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
58+
rm -rf package-lock.json node_modules
59+
# Include $NEW_VERSION to explicitly update the package.json
60+
# entry for the dependency and also so that semver-major updates
61+
# are not skipped.
62+
npm install --ignore-scripts $NEW_VERSION
63+
npm install --ignore-scripts
64+
fi
5165
steps:
5266
- uses: actions/checkout@v2
5367
with:

0 commit comments

Comments
 (0)