We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9212b94 commit 0ddca2cCopy full SHA for 0ddca2c
.github/workflows/update-package-json.sh
@@ -25,15 +25,15 @@ else
25
fi
26
27
# Find all package.json files in subdirectories
28
-find . -name "package.json" | while read -r file; do
+find . -name "package.json" -not -path "*/node_modules/*" | while read -r file; do
29
# Check if the file contains any "@dfinity/" package
30
if grep -q '"@dfinity/' "$file"; then
31
# Use sed to replace the version for all @dfinity packages, preserving the caret if present
32
$SED_CMD -i 's/\("@dfinity\/[^"]*"\s*:\s*"\^*\)[0-9.]*"/\1'"$NEW_VERSION"'"/' "$file"
33
echo "Updated @dfinity/* versions in $file"
34
35
# Update `package-lock.json`
36
- npm install --prefix "$file/.." || exit 1
+ #npm install --prefix "$file/.." || exit 1
37
done
38
39
echo "Script completed."
0 commit comments