mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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>
This commit is contained in:
1 parent
977877b52a
commit
bad6526a00
1 file changed
+9
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user