Skip to content

Commit 2f4892d

Browse files
committed
fix: Pattern for package-lock.json match
1 parent 0090adc commit 2f4892d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release-please.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ jobs:
5050
# to old versions (^4.0.x) which are still correct and should not be updated to new versions (^5.0.x)
5151
# that don't exist on npm yet. We restore these specific entries from the main branch.
5252
# Restore original entries for @ui5/*-npm packages to avoid unintended updates
53-
git show origin/main:package-lock.json | jq -r '.packages | to_entries[] | select(.key | test("node_modules/@ui5/(builder|cli|fs|logger|project|server)-npm$")) | .key' | while read key; do
53+
# Note: npm aliases can be in node_modules or internal/documentation/node_modules
54+
git show origin/main:package-lock.json | jq -r '.packages | to_entries[] | select(.key | test("(node_modules|internal/documentation/node_modules)/@ui5/(builder|cli|fs|logger|project|server)-npm$")) | .key' | while read key; do
5455
original_entry=$(git show origin/main:package-lock.json | jq ".packages[\"$key\"]")
5556
jq --tab --arg key "$key" --argjson entry "$original_entry" '.packages[$key] = $entry' package-lock.json > tmp.$$.json && mv tmp.$$.json package-lock.json
5657
done

0 commit comments

Comments
 (0)