diff options
author | Rich Trott <rtrott@gmail.com> | 2021-11-22 08:01:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 08:01:56 +0300 |
commit | bad6526a000c44faf8535411e8b0c5cce1e828d8 (patch) | |
tree | fc5ec81d6f9a4a6a6b2fbd6e20522f7195b9e2e8 /.github | |
parent | 977877b52a843fecfa19ac801546b435cb0e5137 (diff) |
build: fix `make` invocation in tools.yml
Be in the correct directory for `make lint-md-rollup`.
PR-URL: https://github.com/nodejs/node/pull/40890
Refs: https://github.com/nodejs/node/runs/4270533399?check_suite_focus=true
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/tools.yml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml index e77ddfe60ac..9d0f07717ae 100644 --- a/.github/workflows/tools.yml +++ b/.github/workflows/tools.yml @@ -35,10 +35,17 @@ jobs: - id: "lint-md dependencies" run: | cd tools/lint-md - NEW_VERSION=$(npm outdated --omit=dev --parseable | cut -d: -f4 | xargs) + 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 && npm install --ignore-scripts + 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 + cd ../.. make lint-md-rollup fi steps: |