Skip to content

Commit 0ddca2c

Browse files
fix
1 parent 9212b94 commit 0ddca2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/update-package-json.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ else
2525
fi
2626

2727
# Find all package.json files in subdirectories
28-
find . -name "package.json" | while read -r file; do
28+
find . -name "package.json" -not -path "*/node_modules/*" | while read -r file; do
2929
# Check if the file contains any "@dfinity/" package
3030
if grep -q '"@dfinity/' "$file"; then
3131
# Use sed to replace the version for all @dfinity packages, preserving the caret if present
3232
$SED_CMD -i 's/\("@dfinity\/[^"]*"\s*:\s*"\^*\)[0-9.]*"/\1'"$NEW_VERSION"'"/' "$file"
3333
echo "Updated @dfinity/* versions in $file"
3434
fi
3535
# Update `package-lock.json`
36-
npm install --prefix "$file/.." || exit 1
36+
#npm install --prefix "$file/.." || exit 1
3737
done
3838

3939
echo "Script completed."

0 commit comments

Comments
 (0)