diff options
author | Rich Trott <rtrott@gmail.com> | 2021-11-30 17:41:13 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2021-12-03 00:14:22 +0300 |
commit | 71c04b12a6310041e8435467a32255c8c0f0ce2d (patch) | |
tree | d97edd459a788206ae57c0b49707ce1a3d4d79ad /.github | |
parent | 42e13c2a1077acec8305bd2155f212580825cc7c (diff) |
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>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/tools.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml index d4f7a5d68c8..5750c41b0fc 100644 --- a/.github/workflows/tools.yml +++ b/.github/workflows/tools.yml @@ -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: |