Skip to content

Commit

Permalink
add pnpm i again, just rerun if merge conflict
Browse files Browse the repository at this point in the history
deploy
  • Loading branch information
trueberryless authored Jan 2, 2025
1 parent 8ffe4d3 commit 6225e9d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sync_templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,14 @@ for file_config in $(echo "$FILES" | jq -c '.[]'); do
fi
done

# Post-processing: Run pnpm install only if package.json was modified
if git diff --name-only | grep -q "package.json" || git diff --name-only --cached | grep -q "package.json"; then
echo "package.json was modified. Running pnpm install..."
pnpm install
else
echo "No changes to package.json detected. Skipping pnpm install."
fi

if [ ${#modified_package_jsons[@]} -gt 0 ]; then
echo "Sorting modified package.json files..."
for package_json in "${modified_package_jsons[@]}"; do
Expand Down

0 comments on commit 6225e9d

Please sign in to comment.