mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
1 parent
f74d8b56b8
commit
535bb5fb6b
1 file changed
+14
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user