build: add tools/doc to tools.yml updates

PR-URL: https://github.com/nodejs/node/pull/41036
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yash Ladha <yash@yashladha.in>
This commit is contained in:
Rich Trott authored and Danielle Adams committed 2022-01-31 23:01:02 -05:00
1 parent f74d8b56b8
commit 535bb5fb6b
1 file changed
+14
+14
View File
@@ -39,6 +39,20 @@ jobs:
cd ../..
make lint-md-rollup
fi
- id: doc
run: |
cd tools/doc
npm ci
NEW_VERSION=$(npm outdated --parseable | cut -d: -f4 | xargs)
if [ "$NEW_VERSION" != "" ]; then
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
rm -rf package-lock.json node_modules
# Include $NEW_VERSION to explicitly update the package.json
# entry for the dependency and also so that semver-major updates
# are not skipped.
npm install --ignore-scripts $NEW_VERSION
npm install --ignore-scripts
fi
steps:
- uses: actions/checkout@v2
with: