We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
make
1 parent 4288c6a commit 1482c44Copy full SHA for 1482c44
.github/workflows/tools.yml
@@ -35,10 +35,17 @@ jobs:
35
- id: "lint-md dependencies"
36
run: |
37
cd tools/lint-md
38
- NEW_VERSION=$(npm outdated --omit=dev --parseable | cut -d: -f4 | xargs)
+ npm ci
39
+ NEW_VERSION=$(npm outdated --parseable | cut -d: -f4 | xargs)
40
if [ "$NEW_VERSION" != "" ]; then
41
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
- rm -rf package-lock.json node_modules && npm install --ignore-scripts
42
+ rm -rf package-lock.json node_modules
43
+ # Include $NEW_VERSION to explicitly update the package.json
44
+ # entry for the dependency and also so that semver-major updates
45
+ # are not skipped.
46
+ npm install --ignore-scripts $NEW_VERSION
47
+ npm install --ignore-scripts
48
+ cd ../..
49
make lint-md-rollup
50
fi
51
steps:
0 commit comments