Skip to content

Commit

Permalink
build: add tools/doc to tools.yml updates
Browse files Browse the repository at this point in the history
PR-URL: #41036
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Yash Ladha <[email protected]>
  • Loading branch information
Trott authored and danielleadams committed Feb 1, 2022
1 parent f74d8b5 commit 535bb5f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 535bb5f

Please sign in to comment.