@@ -50,14 +50,17 @@ 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
5758
5859 # Commit the change back to the PR branch
5960 # Amend the Release Please commit to include our fixes
6061 # This keeps the PR clean with a single commit
62+ git config user.name "github-actions[bot]"
63+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
6164 git add packages/project/package.json package-lock.json
6265 git commit --amend --no-edit
6366 git push --force-with-lease
@@ -116,4 +119,4 @@ jobs:
116119 working-directory : packages/cli
117120 run : |
118121 echo "🚀 Publishing @ui5/cli"
119- npm publish --access public --tag next
122+ npm publish --access public --tag next
0 commit comments