Skip to content

Commit

Permalink
build: add tools/doc to tools.yml updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Nov 30, 2021
1 parent c40e148 commit 1922a0a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/tools.yml
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 1922a0a

Please sign in to comment.